Make WordPress Core


Ignore:
Timestamp:
05/18/2009 08:29:26 PM (17 years ago)
Author:
azaozz
Message:

Clean the cache-manifests, make $manifest_version and $tinymce_version global vars accessible from the manifest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r11383 r11388  
    11521152 * Adds the TinyMCE editor used on the Write and Edit screens.
    11531153 *
    1154  * Has option to output a trimmed down version used in Press This.
    1155  *
    11561154 * @package WordPress
    11571155 * @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.
    11581163 */
    11591164function wp_tiny_mce( $teeny = false ) {
    1160         global $concatenate_scripts, $compress_scripts;
     1165        global $concatenate_scripts, $compress_scripts, $tinymce_version;
    11611166
    11621167        if ( ! user_can_richedit() )
    … …  
    13351340        $language = $initArray['language'];
    13361341        $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;
    13381352
    13391353        if ( 'en' != $language )
    … …  
    13511365        base : "<?php echo $baseurl; ?>",
    13521366        suffix : "",
    1353         query : "ver=<?php echo $ver; ?>",
     1367        query : "<?php echo $version; ?>",
    13541368        mceInit : {<?php echo $mce_options; ?>},
    13551369        load_ext : function(url,lang){var sl=tinymce.ScriptLoader;sl.markDone(url+'/langs/'+lang+'.js');sl.markDone(url+'/langs/'+lang+'_dlg.js');}
    … …  
    13601374<?php
    13611375        if ( $concatenate_scripts )
    1362                 echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&amp;ver=$ver'></script>\n";
     1376                echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&amp;$version'></script>\n";
    13631377        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";
    13651379
    13661380        if ( 'en' != $language && isset($lang) )
    13671381                echo "<script type='text/javascript'>\n$lang\n</script>\n";
    13681382        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";
    13701384?>
    13711385
Note: See TracChangeset for help on using the changeset viewer.