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:
parent
85e5ab64a5
commit
9597159393
|
@ -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.
|
// Admin is ssl and the embed is not. Iframes, scripts, and other "active content" will be blocked.
|
||||||
wp_send_json_error( array(
|
wp_send_json_error( array(
|
||||||
'type' => 'not-ssl',
|
'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.' ),
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue