Make WordPress Core


Ignore:
Timestamp:
02/05/2008 06:47:27 AM (17 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/tiny_mce_gzip.php

    r6694 r6726  
    1313//error_reporting(E_ALL);
    1414    @require_once('../../../wp-config.php');  // For get_bloginfo().
    15    
     15
    1616    // Headers
    1717    $expiresOffset = 3600 * 24 * 10; // Cache for 10 days in browser cache
     
    7373    $suffix = getParam( 'suffix', '_src' ) == '_src' ? '_src' : '';
    7474    $cachePath = realpath('.'); // Cache path, this is where the .gz files will be stored
    75    
     75
    7676    $content = '';
    7777    $encodings = array();
     
    7979    $enc = '';
    8080    $cacheKey = '';
    81    
     81
    8282    // WP. Language handling could be improved... Concat all translated langs files and store in /wp-content/languages as .mo?
    8383    $theme = getParam( 'theme', 'advanced' );
    8484    $themes = array($theme);
    85    
     85
    8686    $language = getParam( 'language', 'en' );
    8787    $languages = array($language);
    88    
     88
    8989    if ( $language != strtolower($language) )
    9090        $languages[] = strtolower($language);
    91    
     91
    9292    if ( $language != substr($language, 0, 2) )
    9393        $languages[] = substr($language, 0, 2);
    94    
     94
    9595    $diskCache = false;
    9696    $isJS = true;
     
    159159    foreach ( $languages as $lang )
    160160        $lang_content .= getFileContents('langs/' . $lang . '.js');
    161    
     161
    162162    if ( empty($lang_content) && file_exists('langs/en.js') )
    163163        $lang_content .= getFileContents('langs/en.js');
    164    
     164
    165165    $content .= $lang_content;
    166166
     
    172172        foreach ( $languages as $lang )
    173173            $lang_content .= getFileContents( 'themes/' . $theme . '/langs/' . $lang . '.js' );
    174        
     174
    175175        if ( empty($lang_content) && file_exists( 'themes/' . $theme . '/langs/en.js' ) )
    176176            $lang_content .= getFileContents( 'themes/' . $theme . '/langs/en.js' );
    177        
     177
    178178        $content .= $lang_content;
    179179    }
     
    186186        foreach ( $languages as $lang )
    187187            $lang_content .= getFileContents( 'plugins/' . $plugin . '/langs/' . $lang . '.js' );
    188        
     188
    189189        if ( empty($lang_content) && file_exists( 'plugins/' . $plugin . '/langs/en.js' ) )
    190190            $lang_content .= getFileContents( 'plugins/' . $plugin . '/langs/en.js' );
    191        
     191
    192192        $content .= $lang_content;
    193193    }
     
    236236        suffix : ''
    237237    },
    238    
     238
    239239    opt : {},
    240    
     240
    241241    init : function(arr, cb) {
    242242        var t = this, n, s, nl = document.getElementsByTagName('script');
    243        
     243
    244244        t.opt = arr;
    245245
    246246        t.settings.themes = arr.theme;
    247         t.settings.plugins = arr.plugins; 
     247        t.settings.plugins = arr.plugins;
    248248        t.settings.languages = arr.language;
    249249        s = t.settings;
     
    257257        }
    258258        tinyMCEPreInit.base = t.baseURL;
    259        
     259
    260260        if (!t.coreLoaded)
    261261            t.loadScripts(1, s.themes, s.plugins, s.languages);
     
    275275            return x;
    276276        };
    277        
     277
    278278        // Build query string
    279279        q = 'load=true&js=true&diskcache=' + (s.disk_cache ? 'true' : 'false') + '&core=' + (co ? 'true' : 'false') + '&suffix=' + escape(s.suffix) + '&themes=' + escape(th) + '&plugins=' + escape(pl) + '&languages=' + escape(la);
     
    281281        if (co)
    282282            t.coreLoaded = 1;
    283    
     283
    284284    // Easier to debug with this...
    285285    //  document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + t.baseURL + '/' + s.page_name + '?' + q + '"></script>');
Note: See TracChangeset for help on using the changeset viewer.