[wp-trac] [WordPress Trac] #28137: Add constant to disable loading of functions.php

WordPress Trac noreply at wordpress.org
Thu Aug 14 10:22:04 UTC 2014


#28137: Add constant to disable loading of functions.php
-------------------------+------------------------------
 Reporter:  nickciske    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.9
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  performance
-------------------------+------------------------------
Changes (by Clorith):

 * version:  trunk => 3.9


Comment:

 I've always viewed the WP_USE_THEMES constant as an approach to disable
 theme templates from loading, not to prevent theme functionality
 altogether.

 A common use case for this constant is when calling WP into other projects
 where you want to get the same data that your site would have, in such a
 case your site would be dependent on the actions and filters utilized by
 the theme, and thus so should your external project.

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


More information about the wp-trac mailing list