Make WordPress Core

Ticket #39357: 39357.patch

File 39357.patch, 3.4 KB (added by chris_dev, 8 years ago)
  • wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

     
    15931593         * string is allowed when a comment is being updated.
    15941594         *
    15951595         * @since 4.7.0
     1596         * @access public
    15961597         *
    15971598         * @param string          $value   Author email value submitted.
    15981599         * @param WP_REST_Request $request Full details about the request.
  • wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

     
    11661166         * Checks whether current user can assign all terms sent with the current request.
    11671167         *
    11681168         * @since 4.7.0
     1169         * @access protected
    11691170         *
    11701171         * @param WP_REST_Request $request The request object with post and terms data.
    11711172         * @return bool Whether the current user can assign the provided terms.
     
    15181519         * "Protected: %s", as the REST API communicates the protected status of a post
    15191520         * in a machine readable format, we remove the "Protected: " prefix.
    15201521         *
     1522         * @since 4.7.0
     1523         * @access public
     1524         *
    15211525         * @return string Protected title format.
    15221526         */
    15231527        public function protected_title_format() {
  • wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php

     
    305305         * `null` as it's not a valid value for something like "type => string". We
    306306         * provide a wrapper sanitizer to whitelist the use of `null`.
    307307         *
     308         * @since 4.7.0
     309         * @access public
     310         *
    308311         * @param  mixed           $value   The value for the setting.
    309312         * @param  WP_REST_Request $request The request object.
    310313         * @param  string          $param   The parameter name.
  • wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

     
    142142         * The value can be an integer, 'false', false, or ''.
    143143         *
    144144         * @since 4.7.0
     145         * @access public
    145146         *
    146147         * @param int|bool        $value   The value passed to the reassign parameter.
    147148         * @param WP_REST_Request $request Full details about the request.
     
    10541055         * Performs a couple of checks like edit_user() in wp-admin/includes/user.php.
    10551056         *
    10561057         * @since 4.7.0
     1058         * @access public
    10571059         *
    10581060         * @param  mixed            $value   The username submitted in the request.
    10591061         * @param  WP_REST_Request  $request Full details about the request.
     
    10831085         * Performs a couple of checks like edit_user() in wp-admin/includes/user.php.
    10841086         *
    10851087         * @since 4.7.0
     1088         * @access public
    10861089         *
    10871090         * @param  mixed            $value   The password submitted in the request.
    10881091         * @param  WP_REST_Request  $request Full details about the request.