Make WordPress Core


Ignore:
Timestamp:
03/27/2013 06:11:56 PM (13 years ago)
Author:
markjaquith
Message:

Take revision control out of the realm of a pure constant. Make it filterable.

  • New filter: wp_revisions_to_keep

props ethitter, SergeyBiryukov. fixes #22289.

File:
1 edited

Legend:

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

    r23769 r23818  
    4949
    5050    // Revisions disabled and we're not looking at an autosave
    51     if ( ( ! WP_POST_REVISIONS || !post_type_supports($post->post_type, 'revisions') ) && !wp_is_post_autosave( $revision ) ) {
     51    if ( ! wp_revisions_enabled( $post ) && ! wp_is_post_autosave( $revision ) ) {
    5252        $redirect = 'edit.php?post_type=' . $post->post_type;
    5353        break;
Note: See TracChangeset for help on using the changeset viewer.