From 8d578a1d1f4436e67efebdf603ae38f777c4b6b0 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 27 Nov 2014 22:36:48 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/ajax-actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php index 303f3b2643..36cb488be8 100644 --- a/src/wp-admin/includes/ajax-actions.php +++ b/src/wp-admin/includes/ajax-actions.php @@ -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.' ), '' . esc_html( $url ) . '' ), + 'message' => __( 'This preview is unavailable in the editor.' ), ) ); }