[wp-trac] [WordPress Trac] #37167: Create filter for WP_USE_THEMES constant

WordPress Trac noreply at wordpress.org
Sun Jun 26 09:49:39 UTC 2016


#37167: Create filter for WP_USE_THEMES constant
-------------------------+------------------------------
 Reporter:  mrez0        |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Plugins      |     Version:  trunk
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |     Focuses:
-------------------------+------------------------------
Changes (by michalzuber):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 No need, because you can
 {{{
 add_action( 'template_redirect', '__return_true' );
 }}}
 and skip template loading if I'm not misunderstanding line
 https://github.com/WordPress/WordPress/blob/master/wp-includes/template-
 loader.php#L12

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


More information about the wp-trac mailing list