Skip to content

Commit

Permalink
Merge pull request Yoast#1271 from jrfnl/Prevent-from-running-on-wp-i…
Browse files Browse the repository at this point in the history
…nstall-when-in-mu

Prevent from loading if WP is installing
  • Loading branch information
Joost de Valk committed Jul 3, 2014
2 parents c51fd7d + 48cb21d commit bb4321e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-seo-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function wpseo_admin_init() {
if ( ! function_exists( 'spl_autoload_register' ) ) {
add_action( 'admin_init', 'yoast_wpseo_self_deactivate', 1 );
}
else {
else if ( ! defined( 'WP_INSTALLING' ) || WP_INSTALLING === false ) {
add_action( 'plugins_loaded', 'wpseo_init', 14 );

if ( is_admin() ) {
Expand Down

0 comments on commit bb4321e

Please sign in to comment.