You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -146,8 +146,8 @@ function vip_maintenance_mode_restrict_rest_api( $result ) {
146
146
return$result;
147
147
}
148
148
149
-
$error_message = apply_filters( 'vip_maintenance_mode_rest_api_error_message', __( 'REST API access is currently restricted while this site is undergoing maintenance.', 'maintenance-mode' ) );
150
-
$maintenace_rest_error = newWP_Error(
149
+
$error_message= apply_filters( 'vip_maintenance_mode_rest_api_error_message', __( 'REST API access is currently restricted while this site is undergoing maintenance.', 'maintenance-mode' ) );
150
+
$maintenance_rest_error = newWP_Error(
151
151
'vip_maintenance_mode_rest_error',
152
152
$error_message,
153
153
array(
@@ -156,11 +156,11 @@ function vip_maintenance_mode_restrict_rest_api( $result ) {
156
156
);
157
157
158
158
if ( ! is_user_logged_in() ) {
159
-
return$maintenace_rest_error;
159
+
return$maintenance_rest_error;
160
160
}
161
161
162
162
if ( ! vip_maintenance_mode_current_user_can_bypass() ) {
0 commit comments