From 3155c8ac3ec6cff33340636274ed9b4d7baddf12 Mon Sep 17 00:00:00 2001 From: SergeyBiryukov Date: Wed, 1 Feb 2017 21:31:02 +0000 Subject: [PATCH] REST API: After [38947], improve the wording of the message to clarify that `rest_authentication_errors` is a filter. See #38446. git-svn-id: https://develop.svn.wordpress.org/trunk@40038 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/class-wp-rest-server.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/class-wp-rest-server.php b/src/wp-includes/rest-api/class-wp-rest-server.php index ec8d2a0baf..4f5ae7650d 100644 --- a/src/wp-includes/rest-api/class-wp-rest-server.php +++ b/src/wp-includes/rest-api/class-wp-rest-server.php @@ -264,7 +264,9 @@ class WP_REST_Server { * * @param bool $rest_enabled Whether the REST API is enabled. Default true. */ - apply_filters_deprecated( 'rest_enabled', array( true ), '4.7.0', 'rest_authentication_errors', __( 'The REST API can no longer be completely disabled, the rest_authentication_errors can be used to restrict access to the API, instead.' ) ); + apply_filters_deprecated( 'rest_enabled', array( true ), '4.7.0', 'rest_authentication_errors', + __( 'The REST API can no longer be completely disabled, the rest_authentication_errors filter can be used to restrict access to the API, instead.' ) + ); /** * Filters whether jsonp is enabled.