Changeset 11388 for trunk/wp-admin/includes/post.php
- Timestamp:
- 05/18/2009 08:29:26 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/post.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r11383 r11388 1152 1152 * Adds the TinyMCE editor used on the Write and Edit screens. 1153 1153 * 1154 * Has option to output a trimmed down version used in Press This.1155 *1156 1154 * @package WordPress 1157 1155 * @since 2.7 1156 * 1157 * TinyMCE is loaded separately from other Javascript by using wp-tinymce.php. It outputs concatenated 1158 * and optionaly pre-compressed version of the core and all default plugins. Additional plugins are loaded 1159 * directly by TinyMCE using non-blocking method. Custom plugins can be refreshed by adding a query string 1160 * to the URL when queueing them with the mce_external_plugins filter. 1161 * 1162 * @param bool $teeny optional Output a trimmed down version used in Press This. 1158 1163 */ 1159 1164 function wp_tiny_mce( $teeny = false ) { 1160 global $concatenate_scripts, $compress_scripts ;1165 global $concatenate_scripts, $compress_scripts, $tinymce_version; 1161 1166 1162 1167 if ( ! user_can_richedit() ) … … 1335 1340 $language = $initArray['language']; 1336 1341 $zip = $compress_scripts ? 1 : 0; 1337 $ver = apply_filters('tiny_mce_version', '323'); 1342 1343 /** 1344 * Deprecated 1345 * 1346 * The tiny_mce_version filter is not needed since external plugins are loaded directly by TinyMCE. 1347 * These plugins can be refreshed by appending query string to the URL passed to mce_external_plugins filter. 1348 * If the plugin has a popup dialog, a query string can be added to the button action that opens it (in the plugin's code). 1349 */ 1350 $version = apply_filters('tiny_mce_version', ''); 1351 $version = 'ver=' . $tinymce_version . $version; 1338 1352 1339 1353 if ( 'en' != $language ) … … 1351 1365 base : "<?php echo $baseurl; ?>", 1352 1366 suffix : "", 1353 query : " ver=<?php echo $ver; ?>",1367 query : "<?php echo $version; ?>", 1354 1368 mceInit : {<?php echo $mce_options; ?>}, 1355 1369 load_ext : function(url,lang){var sl=tinymce.ScriptLoader;sl.markDone(url+'/langs/'+lang+'.js');sl.markDone(url+'/langs/'+lang+'_dlg.js');} … … 1360 1374 <?php 1361 1375 if ( $concatenate_scripts ) 1362 echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip& ver=$ver'></script>\n";1376 echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&$version'></script>\n"; 1363 1377 else 1364 echo "<script type='text/javascript' src='$baseurl/tiny_mce.js? ver=$ver'></script>\n";1378 echo "<script type='text/javascript' src='$baseurl/tiny_mce.js?$version'></script>\n"; 1365 1379 1366 1380 if ( 'en' != $language && isset($lang) ) 1367 1381 echo "<script type='text/javascript'>\n$lang\n</script>\n"; 1368 1382 else 1369 echo "<script type='text/javascript' src='$baseurl/langs/wp-langs-en.js? ver=$ver'></script>\n";1383 echo "<script type='text/javascript' src='$baseurl/langs/wp-langs-en.js?$version'></script>\n"; 1370 1384 ?> 1371 1385
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)