[wp-trac] [WordPress Trac] #12473: _wp_old_slug not updated when updating post_name via quick edit
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 24 08:03:03 UTC 2010
#12473: _wp_old_slug not updated when updating post_name via quick edit
--------------------------+-------------------------------------------------
Reporter: mbarklund | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: 3.0
Component: Quick Edit | Version: 2.9.2
Severity: major | Keywords: wp-old-slug
--------------------------+-------------------------------------------------
Comment(by dd32):
This could be simplified with the addition of a transition hook, For
example:
{{{
do_action('updated_post', $id, $new_post_array, $old_post_array);
}}}
It would then be possible for the old slug memory function
({{{wp_check_for_changed_slugs()}}}) to not rely upon a hidden POST
field.. the data is already stored on the server, its just a matter of
passing the right data.
there is the 'pre_update_post' action, which only passes the post_id, and
then the edit_post hook (which the above function is hooked to) but by
that stage, its too late to retrieve the original post object, not only
that, but its also used in a few locations for various meaning.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12473#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list