Ticket #28195: 28195.18.patch
| File 28195.18.patch, 1.1 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/ajax-actions.php
2655 2655 if ( ! $parsed ) { 2656 2656 wp_send_json_error( array( 2657 2657 'type' => 'not-embeddable', 2658 'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_ url( $url ) . '</code>' ),2658 'message' => sprintf( __( '%s failed to embed.' ), '<code>' . esc_html( $url ) . '</code>' ), 2659 2659 ) ); 2660 2660 } 2661 2661 … … 2685 2685 // Admin is ssl and the embed is not. Iframes, scripts, and other "active content" will be blocked. 2686 2686 wp_send_json_error( array( 2687 2687 'type' => 'not-ssl', 2688 'message' => sprintf( __( 'Preview not available. %s cannot be embedded securely.' ), '<code>' . esc_ url( $url ) . '</code>' ),2688 'message' => sprintf( __( 'Preview not available. %s cannot be embedded securely.' ), '<code>' . esc_html( $url ) . '</code>' ), 2689 2689 ) ); 2690 2690 } 2691 2691 … … 2723 2723 } 2724 2724 2725 2725 wp_send_json_success( ob_get_clean() ); 2726 } 2727 No newline at end of file 2726 }