Better error message when the admin is ssl and non-ssl oEmbed previews are not available in the editor. Props Japh, fixes #30533.

git-svn-id: https://develop.svn.wordpress.org/trunk@30591 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2014-11-27 22:36:48 +00:00
parent e2a69b73b5
commit 8d578a1d1f

View File

@@ -2705,7 +2705,7 @@ function wp_ajax_parse_embed() {
// Admin is ssl and the embed is not. Iframes, scripts, and other "active content" will be blocked.
wp_send_json_error( array(
'type' => 'not-ssl',
'message' => sprintf( __( 'Preview not available. %s cannot be embedded securely.' ), '<code>' . esc_html( $url ) . '</code>' ),
'message' => __( 'This preview is unavailable in the editor.' ),
) );
}