Make WordPress Core


Ignore:
Timestamp:
05/23/2010 07:49:21 AM (13 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-admin/includes/template.php

    r14768 r14814  
    27632763
    27642764/**
    2765  * {@internal Missing Short Description}}
    2766  *
    2767  * @since unknown
    2768  */
    2769 function wp_remember_old_slug() {
    2770     global $post;
    2771     $name = esc_attr($post->post_name); // just in case
    2772     if ( strlen($name) )
    2773         echo '<input type="hidden" id="wp-old-slug" name="wp-old-slug" value="' . $name . '" />';
    2774 }
    2775 
    2776 /**
    27772765 * Add a meta box to an edit form.
    27782766 *
Note: See TracChangeset for help on using the changeset viewer.