WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/23/2010 07:49:21 AM (11 years ago)
Author:
dd32
Message:

Introduce a 'post_updated' action, Fires when a post is updated, Post ID, Current and Previous post objects are passed. Updatewp_check_for_changed_slugs() to use new hook. See #12473

File:
1 edited

Legend:

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

    r14295 r14814  
    236236
    237237// Redirect Old Slugs
    238 add_action( 'template_redirect',  'wp_old_slug_redirect'       );
    239 add_action( 'edit_post',          'wp_check_for_changed_slugs' );
    240 add_action( 'edit_form_advanced', 'wp_remember_old_slug'       );
    241 add_action( 'init',               '_show_post_preview'         );
     238add_action( 'template_redirect', 'wp_old_slug_redirect'              );
     239add_action( 'post_updated',      'wp_check_for_changed_slugs', 12, 3 );
     240
     241// Nonce check for Post Previews
     242add_action( 'init', '_show_post_preview' );
    242243
    243244// Timezone
Note: See TracChangeset for help on using the changeset viewer.