Make WordPress Core


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

TinyMCE: Improve the previews for shortcodes.

Merge of [41395] to the 4.8 branch.

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

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

    r41053 r41435  
    950950        'blog_id' => get_current_blog_id(),
    951951    ) );
     952
     953    wp_localize_script( 'mce-view', 'mceViewL10n', array(
     954        'shortcodes' => ! empty( $GLOBALS['shortcode_tags'] ) ? array_keys( $GLOBALS['shortcode_tags'] ) : array()
     955    ) );
    952956}
    953957
Note: See TracChangeset for help on using the changeset viewer.