[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 17:52:57 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:

 Ha! About drove myself mad with this one

 {{{
 $path = preg_replace( '|.+?' . basename(WP_PLUGIN_URL) . '|', '', $plugurl
 );
 }}}

 Might a tad greedy. I can make changes to my plugins for it, but you make
 a WordPress plugin and organize TinyMCE Plugins into a subdirectory that
 has a name something like "tinymce_plugins" then the preg_replace will
 strip out everything up to plugins.


 {{{
 http://thesite.com/wp-
 content/plugins/tiny_mce_test/tinymce_plugins/xhtmlxtras
 }}}

 Becomes:


 {{{
 /home/thesite/wp-content/plugins/xhtmlxtras/langs/
 }}}

 A large hunk of the path "tiny_mce_test/tinymce_plugins/" gets parsed out.

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


More information about the wp-trac mailing list