Make WordPress Core


Ignore:
Timestamp:
09/19/2017 12:40:14 PM (9 years ago)
Author:
ocean90
Message:

TinyMCE: Improve the previews for shortcodes.

Merge of [41395] to the 4.6 branch.

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

  • branches/4.6/src/wp-includes/script-loader.php

    r38487 r41437  
    915915        'blog_id' => get_current_blog_id(),
    916916    ) );
     917
     918    wp_localize_script( 'mce-view', 'mceViewL10n', array(
     919        'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array()
     920    ) );
    917921}
    918922
Note: See TracChangeset for help on using the changeset viewer.