[wp-trac] [WordPress Trac] #29137: Allow to add the stylesheets version in TinyMCE (or any other param)

WordPress Trac noreply at wordpress.org
Sun Aug 17 23:30:31 UTC 2014


#29137: Allow to add the stylesheets version in TinyMCE (or any other param)
-------------------------+------------------------------
 Reporter:  GregLone     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:  3.3
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  administration
-------------------------+------------------------------

Comment (by GregLone):

 OK, I found a way to use parameters.
 Instead of:
 {{{
 add_editor_style( 'res/css/editor-style.css?v=1234' );
 }}}
 Simply do:
 {{{
 add_editor_style( get_stylesheet_directory_uri() . '/res/css/editor-
 style.css?v=1234' );
 }}}
 This way, WordPress won't try any `file_exists()`.
 Simple and stupid :|

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29137#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list