PluginProbe
Elementor Website Builder – more than just a page builder / 3.5.0-dev9
Elementor Website Builder – more than just a page builder v3.5.0-dev9
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/maintenance-mode.php +7 -18 4.2.23.5.0-dev9 View file →
@@ -40,16 +40,16 @@
40 40 * @since 1.4.0
41 41 * @access public
42 42 * @static
43 43 *
44 - * @param string $option Option name. Expected to not be SQL-escaped.
45 - * @param mixed $default_value Optional. Default value to return if the option
46 - * does not exist. Default is false.
44 + * @param string $option Option name. Expected to not be SQL-escaped.
45 + * @param mixed $default Optional. Default value to return if the option
46 + * does not exist. Default is false.
47 47 *
48 48 * @return bool False if value was not updated and true if value was updated.
49 49 */
50 - public static function get( $option, $default_value = false ) {
51 - return get_option( self::OPTION_PREFIX . $option, $default_value );
50 + public static function get( $option, $default = false ) {
51 + return get_option( self::OPTION_PREFIX . $option, $default );
52 52 }
53 53
54 54 /**
55 55 * Set elementor option.
@@ -108,21 +108,10 @@
108 108 $user = wp_get_current_user();
109 109
110 110 $exclude_mode = self::get( 'exclude_mode', [] );
111 111
112 - $is_login_page = false;
112 + $is_login_page = apply_filters( 'elementor/maintenance_mode/is_login_page', false );
113 113
114 - /**
115 - * Is login page
116 - *
117 - * Filters whether the maintenance mode displaying the login page or a regular page.
118 - *
119 - * @since 1.0.4
120 - *
121 - * @param bool $is_login_page Whether its a login page.
122 - */
123 - $is_login_page = apply_filters( 'elementor/maintenance_mode/is_login_page', $is_login_page );
124 -
125 114 if ( $is_login_page ) {
126 115 return;
127 116 }
128 117
@@ -202,9 +191,9 @@
202 191 'sections' => [
203 192 'maintenance_mode' => [
204 193 'callback' => function() {
205 194 echo '<h2>' . esc_html__( 'Maintenance Mode', 'elementor' ) . '</h2>';
206 - echo '<p>' . esc_html__( 'Set your entire website as MAINTENANCE MODE, meaning the site is offline temporarily for maintenance, or set it as COMING SOON mode, meaning the site is offline until it is ready to be launched.', 'elementor' ) . '</p>';
195 + echo '<div>' . esc_html__( 'Set your entire website as MAINTENANCE MODE, meaning the site is offline temporarily for maintenance, or set it as COMING SOON mode, meaning the site is offline until it is ready to be launched.', 'elementor' ) . '</div>';
207 196 },
208 197 'fields' => [
209 198 'maintenance_mode_mode' => [
210 199 'label' => esc_html__( 'Choose Mode', 'elementor' ),