mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
TinyMCE wpView: fix showing errors for non-embeddable URLs, no-ssl or no items. Props avryl, fixes #29114, see #29268.
git-svn-id: https://develop.svn.wordpress.org/trunk@29577 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2723,7 +2723,10 @@ function wp_ajax_parse_media_shortcode() {
|
||||
$shortcode = do_shortcode( wp_unslash( $_REQUEST['shortcode'] ) );
|
||||
|
||||
if ( empty( $shortcode ) ) {
|
||||
wp_send_json_error( array( 'statusText' => __( 'No items found.' ) ) );
|
||||
wp_send_json_error( array(
|
||||
'type' => 'no-items',
|
||||
'message' => __( 'No items found.' ),
|
||||
) );
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
||||
Reference in New Issue
Block a user