Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Fix maintenance mode activation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Secchi committed Jul 8, 2024
1 parent c61d333 commit 5e9aa8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/base/development/class-maintenance-mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function register() {
return;
}

add_action( 'wp', array( $this, 'check_excluded_pages' ) );
add_action( 'init', array( $this, 'check_excluded_pages' ) );
}


Expand Down
2 changes: 1 addition & 1 deletion mu-plugins/project-custom-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
add_filter(
'pre_option_writepoetry_maintenance_mode',
function () {
return 0;
return '1';
}
);

Expand Down

0 comments on commit 5e9aa8b

Please sign in to comment.