Make WordPress Core

Changeset 24425


Ignore:
Timestamp:
06/07/2013 02:06:22 AM (12 years ago)
Author:
nacin
Message:

Use wp_revisions_enabled(). props ethitter. fixes #24525.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/revision.php

    r24219 r24425  
    2727
    2828    // Revisions disabled (previously checked autosavegs && ! wp_is_post_autosave( $revision ))
    29     if ( ( ! WP_POST_REVISIONS || ! post_type_supports( $post->post_type, 'revisions' ) ) ) {
     29    if ( ! wp_revisions_enabled( $post ) ) {
    3030        $redirect = 'edit.php?post_type=' . $post->post_type;
    3131        break;
Note: See TracChangeset for help on using the changeset viewer.