[wp-trac] [WordPress Trac] #29269: save_post doesn't fire when unavailable page template saved to page

WordPress Trac noreply at wordpress.org
Wed Aug 20 03:51:54 UTC 2014


#29269: save_post doesn't fire when unavailable page template saved to page
-------------------------------+------------------------------
 Reporter:  matthewdietsche    |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  2.6
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * version:  3.9.2 => 2.6
 * component:  Themes => Posts, Post Types


Comment:

 Introduced in [7900].

 The post is actually updated, but if `page_template` value is invalid,
 `save_post` and related actions never run.

 Looks like template validation should happen earlier, before updating the
 post, or later, after running the actions.

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


More information about the wp-trac mailing list