Skip to content

Commit

Permalink
Merge pull request #408 from Codeinwp/bugfix/407
Browse files Browse the repository at this point in the history
Fixed compatibility issue with WP 6.4
  • Loading branch information
vytisbulkevicius authored Dec 21, 2023
2 parents d6c1dbe + eb6b246 commit fd2dbef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/classes/wp-maintenance-mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ 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' ) {
if ( function_exists( 'wp_functionality_constants' ) ) {
wp_functionality_constants();
}
wp_publish_post( $this->plugin_settings['design']['page_id'] );
}

Expand Down

0 comments on commit fd2dbef

Please sign in to comment.