REST API: After [38947], improve the wording of the message to clarify that `rest_authentication_errors` is a filter.

See #38446.
Built from https://develop.svn.wordpress.org/trunk@40038


git-svn-id: http://core.svn.wordpress.org/trunk@39975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2017-02-01 21:32:47 +00:00
parent 19ae50d9fa
commit e0e9568e24
2 changed files with 4 additions and 2 deletions

View File

@ -264,7 +264,9 @@ class WP_REST_Server {
* *
* @param bool $rest_enabled Whether the REST API is enabled. Default true. * @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. * Filters whether jsonp is enabled.

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.8-alpha-40037'; $wp_version = '4.8-alpha-40038';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.