Skip to content

Commit

Permalink
Fix issue with private page #404
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Oct 26, 2023
1 parent 8fcc919 commit c2f8347
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/classes/wp-maintenance-mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ private function __construct() {
add_action( 'otter_form_after_submit', array( $this, 'otter_add_subscriber' ) );

if ( isset( $this->plugin_settings['design']['page_id'] ) && get_option( 'wpmm_new_look' ) && get_post_status( $this->plugin_settings['design']['page_id'] ) === 'private' ) {
add_filter( 'wpo_purge_all_cache_on_update', '__return_true' );
wp_publish_post( $this->plugin_settings['design']['page_id'] );
}

Expand Down

0 comments on commit c2f8347

Please sign in to comment.