WordPress.org

Make WordPress Core

Changeset 23842


Ignore:
Timestamp:
03/28/13 23:45:19 (13 months ago)
Author:
markjaquith
Message:

Use the wp_insert_post hook to save revisions, so we save revisions for
an initial wp_insert_post() run, not just updates.

see #16215

File:
1 edited

Legend:

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

    r23823 r23842  
    251251add_action( 'plugins_loaded',             'wp_maybe_load_embeds',                     0    ); 
    252252add_action( 'shutdown',                   'wp_ob_end_flush_all',                      1    ); 
    253 add_action( 'post_updated',               'wp_save_post_revision',                   10, 1 ); 
     253add_action( 'wp_insert_post',             'wp_save_post_revision',                   10, 1 ); 
    254254add_action( 'publish_post',               '_publish_post_hook',                       5, 1 ); 
    255255add_action( 'transition_post_status',     '_transition_post_status',                  5, 3 ); 
Note: See TracChangeset for help on using the changeset viewer.