WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/01/2017 09:31:02 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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

See #38446.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r39278 r40038  
    265265         * @param bool $rest_enabled Whether the REST API is enabled. Default true.
    266266         */
    267         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.' ) );
     267        apply_filters_deprecated( 'rest_enabled', array( true ), '4.7.0', 'rest_authentication_errors',
     268            __( 'The REST API can no longer be completely disabled, the rest_authentication_errors filter can be used to restrict access to the API, instead.' )
     269        );
    268270
    269271        /**
Note: See TracChangeset for help on using the changeset viewer.