Make WordPress Core


Ignore:
Timestamp:
12/06/2019 10:41:26 PM (6 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-admin/includes/revision.php

    r46603 r46823  
    1313 * @since 3.6.0
    1414 *
    15  * @param object|int $post         The post object. Also accepts a post ID.
    16  * @param int        $compare_from The revision ID to compare from.
    17  * @param int        $compare_to   The revision ID to come to.
     15 * @param WP_Post|int $post         The post object or post ID.
     16 * @param int         $compare_from The revision ID to compare from.
     17 * @param int         $compare_to   The revision ID to come to.
    1818 *
    1919 * @return array|bool Associative array of a post's revisioned fields and their diffs.
     
    159159 * @since 3.6.0
    160160 *
    161  * @param object|int $post                 The post object. Also accepts a post ID.
    162  * @param int        $selected_revision_id The selected revision ID.
    163  * @param int        $from                 Optional. The revision ID to compare from.
     161 * @param WP_Post|int $post                 The post object or post ID.
     162 * @param int         $selected_revision_id The selected revision ID.
     163 * @param int         $from                 Optional. The revision ID to compare from.
    164164 *
    165165 * @return array An associative array of revision data and related settings.
Note: See TracChangeset for help on using the changeset viewer.