WordPress.org

Make WordPress Core

Changeset 9497


Ignore:
Timestamp:
11/03/08 18:21:00 (5 years ago)
Author:
azaozz
Message:

Fix path when loading translations for default TinyMCE plugins from the plugins directory, fixes #7994

File:
1 edited

Legend:

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

    r9473 r9497  
    11161116                $strings = $str1 = $str2 = ''; 
    11171117                if ( ! in_array($name, $loaded_langs) ) { 
    1118                     $path = preg_replace( '|.+?' . basename(WP_PLUGIN_URL) . '|', '', $plugurl ); 
     1118                    $path = str_replace( WP_PLUGIN_URL, '', $plugurl ); 
    11191119                    $path = WP_PLUGIN_DIR . $path . '/langs/'; 
    11201120 
    11211121                    if ( function_exists('realpath') ) 
    1122                         $plugpath = realpath($plugpath); 
     1122                        $path = realpath($path); 
    11231123 
    11241124                    if ( is_file($path . $mce_locale . '.js') ) 
Note: See TracChangeset for help on using the changeset viewer.