Changeset 38459 for trunk/src/wp-includes/class-wp-editor.php
- Timestamp:
- 08/31/2016 05:48:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r38349 r38459 297 297 * @static 298 298 * 299 * @global string $wp_version300 299 * @global string $tinymce_version 301 300 * … … 304 303 */ 305 304 public static function editor_settings($editor_id, $set) { 306 global $ wp_version, $tinymce_version;305 global $tinymce_version; 307 306 308 307 if ( empty(self::$first_init) ) { … … 560 559 561 560 $suffix = SCRIPT_DEBUG ? '' : '.min'; 562 $version = 'ver=' . $wp_version;561 $version = 'ver=' . get_bloginfo( 'version' ); 563 562 $dashicons = includes_url( "css/dashicons$suffix.css?$version" ); 564 563 … … 1132 1131 * 1133 1132 * @static 1134 * @global string $wp_version1135 1133 * @global string $tinymce_version 1136 1134 * @global bool $concatenate_scripts … … 1138 1136 */ 1139 1137 public static function editor_js() { 1140 global $ wp_version, $tinymce_version, $concatenate_scripts, $compress_scripts;1138 global $tinymce_version, $concatenate_scripts, $compress_scripts; 1141 1139 1142 1140 /** … … 1216 1214 $baseurl = self::$baseurl; 1217 1215 // Load tinymce.js when running from /src, else load wp-tinymce.js.gz (production) or tinymce.min.js (SCRIPT_DEBUG) 1218 $mce_suffix = false !== strpos( $wp_version, '-src' ) ? '' : '.min';1216 $mce_suffix = false !== strpos( get_bloginfo( 'version' ), '-src' ) ? '' : '.min'; 1219 1217 1220 1218 if ( $tmce_on ) {
Note: See TracChangeset
for help on using the changeset viewer.