Make WordPress Core


Ignore:
Timestamp:
08/22/2014 06:54:08 PM (12 years ago)
Author:
azaozz
Message:

TinyMCE wpView: fix showing errors for non-embeddable URLs, no-ssl or no items. Props avryl, fixes #29114, see #29268.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r29559 r29577  
    27242724
    27252725    if ( empty( $shortcode ) ) {
    2726         wp_send_json_error( array( 'statusText' => __( 'No items found.' ) ) );
     2726        wp_send_json_error( array(
     2727            'type' => 'no-items',
     2728            'message' => __( 'No items found.' ),
     2729        ) );
    27272730    }
    27282731
Note: See TracChangeset for help on using the changeset viewer.