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
This commit is contained in:
parent
6c32c99a97
commit
3155c8ac3e
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue