Make WordPress Core


Ignore:
Timestamp:
11/11/2019 02:41:15 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of WP_Error.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r46586 r46696  
    11261126     * @param WP_REST_Request $request Full details about the request.
    11271127     * @param string          $param   The parameter name.
    1128      * @return WP_Error|string The sanitized username, if valid, otherwise an error.
     1128     * @return string|WP_Error The sanitized username, if valid, otherwise an error.
    11291129     */
    11301130    public function check_username( $value, $request, $param ) {
     
    11551155     * @param WP_REST_Request $request Full details about the request.
    11561156     * @param string          $param   The parameter name.
    1157      * @return WP_Error|string The sanitized password, if valid, otherwise an error.
     1157     * @return string|WP_Error The sanitized password, if valid, otherwise an error.
    11581158     */
    11591159    public function check_user_password( $value, $request, $param ) {
Note: See TracChangeset for help on using the changeset viewer.