[wp-hackers] prevent theme's functions.php from loading in wp-settings
nikolov.tmw at gmail.com
Mon May 5 15:07:32 UTC 2014
WP Ajax handlers(the one at /wp-admin/admin-ajax.php) load all plugins and
themes as well(since themes can also register AJAX action handlers).
On Mon, May 5, 2014 at 5:56 PM, Nicholas Ciske <nl at thoughtrefinery.com>wrote:
> Tried define( 'SHORTINIT', true ); ? That keeps wp-settings.php from
> loading in the first place.
> What if you define 'WP_INSTALLING' to something? That would seem to
> preclude the loading of functions.php -- but feels hacky.
> See also:
> Or perhaps you need to reframe the problem and just use a WP Ajax handler
> Nick Ciske
> On May 3, 2014, at 6:29 PM, Paul Menard <paul at codehooligans.com> wrote:
> > Thanks Andrew. But my point was more about the theme functions.php being
> > loaded at all from wp-settings.php. Sure I can figure out a way to short
> > circuit the get_options call but that is for TwentyFourteen. What is
> > is another theme used and the functions.php does many other queries I
> > really don't want? Just seems less efficient not being able to control
> > via the WP_USE_THEMES define.
> > P-
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers