Discussion:
is using "WP_INSTALLING" constant a doing_it_wrong matter?
Daniel
2014-05-18 00:38:44 UTC
Permalink
Hi guys,

I've done some research and I found that I could fire up wordpress
without any plugins or theme loading by setting "WP_INSTALLING" to
true.

After doing some more reading, I found that it may not be the best idea. [1] [2]

What I'm doing is I got a bridge that connect phpBB and wordpress
together and when someone logs in and out of phpBB I need to call up
wp-load so that I can do things like checking to see if an account is
created or logging the user out of wordpress.

My question is, do I have a valid case of using "WP_INSTALLING"? The
file that I'm calling wp-load.php from is outside of WordPress so it
won't get loaded as a plugin.

Thank-you

[1]http://wordpress-hackers.1065353.n5.nabble.com/Is-WP-INSTALLING-constant-here-to-stay-td40569.html
[2]http://ottopress.com/2010/dont-include-wp-load-please/

Regards,
Daniel Fenn
Nicholas Ciske
2014-05-18 08:37:28 UTC
Permalink
This is probably what you want to use instead:

define( 'SHORTINIT', true );

http://kynatro.com/blog/2012/12/11/finally-a-practical-use-for-wordpress-secret-shortinit-constant/

http://wpengineer.com/2449/load-minimum-of-wordpress/

https://coderwall.com/p/of7y2q

_________________________
Nick Ciske
http://thoughtrefinery.com/
@nciske
Post by Daniel
My question is, do I have a valid case of using "WP_INSTALLING"? The
file that I'm calling wp-load.php from is outside of WordPress so it
won't get loaded as a plugin.
Daniel
2014-05-20 00:24:29 UTC
Permalink
Hi Nick,

Thank-you for providing those links, I'll give that a try and see if
it does the same thing.

Regards,
Daniel Fenn
Post by Nicholas Ciske
define( 'SHORTINIT', true );
http://kynatro.com/blog/2012/12/11/finally-a-practical-use-for-wordpress-secret-shortinit-constant/
http://wpengineer.com/2449/load-minimum-of-wordpress/
https://coderwall.com/p/of7y2q
_________________________
Nick Ciske
http://thoughtrefinery.com/
@nciske
Post by Daniel
My question is, do I have a valid case of using "WP_INSTALLING"? The
file that I'm calling wp-load.php from is outside of WordPress so it
won't get loaded as a plugin.
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
Loading...