[wp-trac] [WordPress Trac] #37352: Change get_option with stylesheet and template to get_stylesheet() and get_template()

WordPress Trac noreply at wordpress.org
Wed Jul 13 07:49:50 UTC 2016


#37352: Change get_option with stylesheet and template to get_stylesheet() and
get_template()
------------------------------+-----------------------------
 Reporter:  sebastian.pisula  |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Themes            |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Change get_option with stylesheet and template to get_stylesheet() and
 get_template()

 In my plugin I must use 4 filters but I should use two:

 {{{
 add_filter( 'template', array( $this, 'template_stylesheet' ) );
 add_filter( 'stylesheet', array( $this, 'template_stylesheet' ) );
 add_filter( 'pre_option_template', array( $this, 'template_stylesheet' )
 );
 add_filter( 'pre_option_stylesheet', array( $this, 'template_stylesheet' )
 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37352>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list