Make WordPress Core


Ignore:
Timestamp:
12/06/2019 10:41:26 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Increase the specificity of various docblock parameter types and return types.

See #48303

File:
1 edited

Legend:

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

    r46646 r46823  
    870870         * @since 4.7.0
    871871         *
    872          * @param object           $post     The deleted or trashed post.
     872         * @param WP_Post          $post     The deleted or trashed post.
    873873         * @param WP_REST_Response $response The response data.
    874874         * @param WP_REST_Request  $request  The request sent to the API.
     
    11461146     * @since 4.7.0
    11471147     *
    1148      * @param string $post_status Post status.
    1149      * @param object $post_type   Post type.
     1148     * @param string       $post_status Post status.
     1149     * @param WP_Post_Type $post_type   Post type.
    11501150     * @return string|WP_Error Post status or WP_Error if lacking the proper permission.
    11511151     */
     
    13221322     * @since 4.7.0
    13231323     *
    1324      * @param object|string $post_type Post type name or object.
     1324     * @param WP_Post_Type|string $post_type Post type name or object.
    13251325     * @return bool Whether the post type is allowed in REST.
    13261326     */
     
    13441344     * @since 4.7.0
    13451345     *
    1346      * @param object $post Post object.
     1346     * @param WP_Post $post Post object.
    13471347     * @return bool Whether the post can be read.
    13481348     */
     
    13871387     * @since 4.7.0
    13881388     *
    1389      * @param object $post Post object.
     1389     * @param WP_Post $post Post object.
    13901390     * @return bool Whether the post can be edited.
    13911391     */
     
    14051405     * @since 4.7.0
    14061406     *
    1407      * @param object $post Post object.
     1407     * @param WP_Post $post Post object.
    14081408     * @return bool Whether the post can be created.
    14091409     */
     
    14231423     * @since 4.7.0
    14241424     *
    1425      * @param object $post Post object.
     1425     * @param WP_Post $post Post object.
    14261426     * @return bool Whether the post can be deleted.
    14271427     */
Note: See TracChangeset for help on using the changeset viewer.