WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/19/2017 08:18:15 AM (21 months ago)
Author:
ocean90
Message:

TinyMCE: Improve the previews for shortcodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r41390 r41395  
    10591059        'blog_id' => get_current_blog_id(),
    10601060    ) );
     1061
     1062    wp_localize_script( 'mce-view', 'mceViewL10n', array(
     1063        'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array()
     1064    ) );
    10611065}
    10621066
Note: See TracChangeset for help on using the changeset viewer.