[wp-trac] [WordPress Trac] #15628: Trash_post action runs twice for each call

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 26 23:08:47 UTC 2010


#15628: Trash_post action runs twice for each call
--------------------------------------+-----------------------------
 Reporter:  b-rad                     |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  General                   |     Version:  2.9
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |
--------------------------------------+-----------------------------
Changes (by nacin):

 * keywords:  trash_post => needs-patch dev-feedback
 * version:  3.0.3 => 2.9
 * milestone:  Awaiting Review => Future Release


Comment:

 Ah ha. It's an action name clash.

 wp_trash_post() calls 'trash_post'.

 wp_transition_post_status() calls '$post_status_$post_type', which is
 'trash_post'.

 Clever. We'll have to kill or rename the one in wp_trash_post.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15628#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list