To improve troubleshooting use `esc_html()` for a failed embed.

see #28195.
Built from https://develop.svn.wordpress.org/trunk@29354


git-svn-id: http://core.svn.wordpress.org/trunk@29130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-08-01 22:34:15 +00:00
parent 2cb623b062
commit 203c44581b
1 changed files with 3 additions and 3 deletions

View File

@ -2655,7 +2655,7 @@ function wp_ajax_parse_embed() {
if ( ! $parsed ) {
wp_send_json_error( array(
'type' => 'not-embeddable',
'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_url( $url ) . '</code>' ),
'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_html( $url ) . '</code>' ),
) );
}
@ -2685,7 +2685,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_url( $url ) . '</code>' ),
'message' => sprintf( __( 'Preview not available. %s cannot be embedded securely.' ), '<code>' . esc_html( $url ) . '</code>' ),
) );
}