[wp-trac] [WordPress Trac] #19437: Pass post type as a class to TinyMCE init

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 2 20:31:40 UTC 2012


#19437: Pass post type as a class to TinyMCE init
-------------------------+-----------------------
 Reporter:  markjaquith  |       Owner:  azaozz
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.4
Component:  TinyMCE      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:14 SergeyBiryukov]:

 Wouldn't that add the child theme's stylesheet before the parent theme's?
 At first look in the patch the parent theme loop in after the child theme
 loop:

 {{{
 if ( is_child_theme() ) {
   $template_uri = get_template_directory_uri();
   $template_dir = get_template_directory();

   foreach ( $editor_styles as $file ) {
     ...
   }
 }

 foreach ( $editor_styles as $file ) {
   if ( $file && file_exists( "$style_dir/$file" ) )
     ...
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19437#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list