WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/14/2013 11:36:32 AM (7 years ago)
Author:
westi
Message:

Revisions: Before saving a new post revision make sure that something has changed in the fields that we are revisioning.

Fixes: #7392 and #9843 props adamsilverstein.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r23355 r23414  
    250250add_action( 'plugins_loaded',             'wp_maybe_load_embeds',                     0    );
    251251add_action( 'shutdown',                   'wp_ob_end_flush_all',                      1    );
    252 add_action( 'pre_post_update',            'wp_save_post_revision'                          );
     252add_action( 'pre_post_update',            'wp_save_post_revision',                   10, 2 );
    253253add_action( 'publish_post',               '_publish_post_hook',                       5, 1 );
    254254add_action( 'transition_post_status',     '_transition_post_status',                  5, 3 );
Note: See TracChangeset for help on using the changeset viewer.