WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/11/2020 06:30:58 PM (13 months ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [46696].

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/revision.php

    r46821 r47060  
    254254 *
    255255 * @param int|WP_Post $post Post ID or post object.
    256  * @return false|int False if not a revision, ID of revision's parent otherwise.
     256 * @return int|false ID of revision's parent on success, false if not a revision.
    257257 */
    258258function wp_is_post_revision( $post ) {
     
    271271 *
    272272 * @param int|WP_Post $post Post ID or post object.
    273  * @return false|int False if not a revision, ID of autosave's parent otherwise
     273 * @return int|false ID of autosave's parent on success, false if not a revision.
    274274 */
    275275function wp_is_post_autosave( $post ) {
Note: See TracChangeset for help on using the changeset viewer.