Make WordPress Core

Ticket #16215: 16215.2.diff

File 16215.2.diff, 996 bytes (added by adamsilverstein, 12 years ago)

save post revision after post update not before

  • wp-includes/default-filters.php

     
    250250add_action( 'plugins_loaded',             'wp_maybe_load_widgets',                    0    );
    251251add_action( 'plugins_loaded',             'wp_maybe_load_embeds',                     0    );
    252252add_action( 'shutdown',                   'wp_ob_end_flush_all',                      1    );
    253 add_action( 'pre_post_update',            'wp_save_post_revision',                   10, 2 );
     253add_action( 'edit_post',                  'wp_save_post_revision',                   10, 2 );
    254254add_action( 'publish_post',               '_publish_post_hook',                       5, 1 );
    255255add_action( 'transition_post_status',     '_transition_post_status',                  5, 3 );
    256256add_action( 'transition_post_status',     '_update_term_count_on_transition_post_status', 10, 3 );