Skip to content

Commit

Permalink
Prevent from loading if WP is installing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jun 29, 2014
1 parent 84b744b commit eaa78e0
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 @@ -274,7 +274,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 eaa78e0

Please sign in to comment.