WordPress.org

Make WordPress Core

Ticket #24525: 24525.patch

File 24525.patch, 511 bytes (added by ethitter, 6 years ago)
  • wp-admin/revision.php

     
    2626                break;
    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;
    3232        }