mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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.' ),
|
||||
) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user