Skip to content

Commit

Permalink
Merge pull request #68 from Automattic/add/rector
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones authored Dec 29, 2024
2 parents fb4ec22 + f5bf7e4 commit 31ca502
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"php-parallel-lint/php-parallel-lint": "^1.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpunit/phpunit": "^9",
"rector/rector": "^1",
"wp-coding-standards/wpcs": "^3",
"yoast/phpunit-polyfills": "^1.1"
},
Expand All @@ -38,6 +39,9 @@
"prepare": [
"bash bin/install-wp-tests.sh wordpress_test root root localhost"
],
"rector": [
"@php ./vendor/bin/rector"
],
"test": [
"@php ./vendor/bin/phpunit --testsuite WP_Tests"
],
Expand Down
2 changes: 1 addition & 1 deletion maintenance-mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function vip_maintenance_mode_restrict_rest_api( $result ) {
return $result;
}

$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' ) );
$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' ) );
$maintenance_rest_error = new WP_Error(
'vip_maintenance_mode_rest_error',
$error_message,
Expand Down

0 comments on commit 31ca502

Please sign in to comment.