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-post-statuses-controller.php

    r46586 r46696  
    7979     *
    8080     * @param WP_REST_Request $request Full details about the request.
    81      * @return WP_Error|bool True if the request has read access, WP_Error object otherwise.
     81     * @return true|WP_Error True if the request has read access, WP_Error object otherwise.
    8282     */
    8383    public function get_items_permissions_check( $request ) {
     
    102102     *
    103103     * @param WP_REST_Request $request Full details about the request.
    104      * @return WP_Error|WP_REST_Response Response object on success, or WP_Error object on failure.
     104     * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
    105105     */
    106106    public function get_items( $request ) {
     
    129129     *
    130130     * @param WP_REST_Request $request Full details about the request.
    131      * @return WP_Error|bool True if the request has read access for the item, WP_Error object otherwise.
     131     * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise.
    132132     */
    133133    public function get_item_permissions_check( $request ) {
     
    179179     *
    180180     * @param WP_REST_Request $request Full details about the request.
    181      * @return WP_Error|WP_REST_Response Response object on success, or WP_Error object on failure.
     181     * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
    182182     */
    183183    public function get_item( $request ) {
Note: See TracChangeset for help on using the changeset viewer.