Make WordPress Core


Ignore:
Timestamp:
05/27/2015 06:37:29 PM (10 years ago)
Author:
wonderboymusic
Message:

Add missing doc blocks to revision.php.
Clarify @return values where necessary.
In wp_delete_post_revision(), wp_delete_post() doesn't return WP_Error, so that check can be removed.
wp_revisions_to_keep() always returns an int, so wp_revisions_enabled() can use strict comparison.

See #32444.

File:
1 edited

Legend:

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

    r32619 r32621  
    26092609
    26102610    if ( !$force_delete && ( $post->post_type == 'post' || $post->post_type == 'page') && get_post_status( $postid ) != 'trash' && EMPTY_TRASH_DAYS )
    2611             return wp_trash_post($postid);
     2611        return wp_trash_post( $postid );
    26122612
    26132613    if ( $post->post_type == 'attachment' )
Note: See TracChangeset for help on using the changeset viewer.