[wp-trac] Re: [WordPress Trac] #7994: Language files for TinyMCE dialogs aren't loaded for official TinyMCE plugins (like advlink)

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 3 18:54:37 GMT 2008


#7994: Language files for TinyMCE dialogs aren't loaded for official TinyMCE
plugins (like advlink)
-------------------------+--------------------------------------------------
 Reporter:  johnconners  |        Owner:  azaozz  
     Type:  defect       |       Status:  reopened
 Priority:  normal       |    Milestone:  2.8     
Component:  TinyMCE      |      Version:  2.7     
 Severity:  normal       |   Resolution:          
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by ev3rywh3re):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 One more you should be aware of! The realpath function will strip that
 ending "/" you added to the $path.

 {{{
 $path = WP_PLUGIN_DIR . $path . '/langs/';

 if ( function_exists('realpath') )
     $path = realpath($path);
 }}}

 Becomes: WP_PLUGIN_DIR/$path/langs

 Wasn't sure how you wanted to handle that or I would have added a patch.
 To either remove the slash and add slashes to the later is_file
 statements. Or add the slash to $path after realpath.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7994#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list