Changeset 32543
- Timestamp:
- 05/22/2015 05:09:38 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r32536 r32543 248 248 249 249 /** 250 * @static 250 251 * 251 * @static 252 * @global string $wp_version 253 * @global string $tinymce_version 254 * 252 255 * @param string $editor_id 253 256 * @param array $set 254 257 */ 255 258 public static function editor_settings($editor_id, $set) { 259 global $wp_version, $tinymce_version; 260 256 261 $first_run = false; 257 262 … … 498 503 'entity_encoding' => 'raw', 499 504 'keep_styles' => false, 500 'cache_suffix' => 'wp-mce-' . $ GLOBALS['tinymce_version'],505 'cache_suffix' => 'wp-mce-' . $tinymce_version, 501 506 502 507 // Limit the preview styles in the menu/toolbar … … 514 519 515 520 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 516 $version = 'ver=' . $ GLOBALS['wp_version'];521 $version = 'ver=' . $wp_version; 517 522 $dashicons = includes_url( "css/dashicons$suffix.css?$version" ); 518 523 … … 1065 1070 * 1066 1071 * @static 1072 * @global string $wp_version 1067 1073 * @global string $tinymce_version 1068 1074 * @global bool $concatenate_scripts … … 1070 1076 */ 1071 1077 public static function editor_js() { 1072 global $ tinymce_version, $concatenate_scripts, $compress_scripts;1078 global $wp_version, $tinymce_version, $concatenate_scripts, $compress_scripts; 1073 1079 1074 1080 /** … … 1148 1154 $baseurl = self::$baseurl; 1149 1155 // Load tinymce.js when running from /src, else load wp-tinymce.js.gz (production) or tinymce.min.js (SCRIPT_DEBUG) 1150 $mce_suffix = false !== strpos( $ GLOBALS['wp_version'], '-src' ) ? '' : '.min';1156 $mce_suffix = false !== strpos( $wp_version, '-src' ) ? '' : '.min'; 1151 1157 1152 1158 if ( $tmce_on ) {
Note: See TracChangeset
for help on using the changeset viewer.