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

Built from https://develop.svn.wordpress.org/trunk@30591


git-svn-id: http://core.svn.wordpress.org/trunk@30581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-11-27 22:37:24 +00:00
parent 85e5ab64a5
commit 9597159393
2 changed files with 2 additions and 2 deletions

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.' ),
) );
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-beta2-30590';
$wp_version = '4.1-beta2-30591';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.