[wp-trac] [WordPress Trac] #29847: get_default_post_to_edit() stomps on assigned post_name

WordPress Trac noreply at wordpress.org
Sat Nov 29 19:25:39 UTC 2014


#29847: get_default_post_to_edit() stomps on assigned post_name
-------------------------------+---------------------------
 Reporter:  danielbachhuber    |       Owner:  boonebgorges
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.1
Component:  Posts, Post Types  |     Version:  3.0
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch commit   |     Focuses:
-------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30626"]:
 {{{
 #!CommitTicketReference repository="" revision="30626"
 In `get_default_post_to_edit()`, let 'post_name' be passed to filter.

 Previously, it was being overridden after the default post had been
 inserted
 into the database, making it cumbersome to override with the
 'wp_insert_post_data'
 filter.

 Props danielbachhuber.
 Fixes #29847.
 }}}

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


More information about the wp-trac mailing list