[wp-trac] [WordPress Trac] #36181: wp_transition_post_status after save post action

WordPress Trac noreply at wordpress.org
Fri Mar 11 22:23:58 UTC 2016


#36181: wp_transition_post_status after save post action
------------------------------+------------------------------
 Reporter:  sebastian.pisula  |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  General           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch close   |     Focuses:
------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:  has-patch => has-patch close


Comment:

 Developers hooking onto `save_post` and `wp_insert_post` can rely on
 `wp_transition_post_status()` being run. This patch changes that by
 running it ''after'' the hooks have been executed.

 I'm sure this would break lots of things and therefore I don't see any
 reason to implement this.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36181#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list