[wp-trac] [WordPress Trac] #62013: the post_name field is not taken into account

WordPress Trac noreply at wordpress.org
Mon Sep 9 15:52:59 UTC 2024


#62013: the post_name field is not taken into account
-------------------------------+-------------------------
 Reporter:  yperret            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  worksforme
 Keywords:                     |     Focuses:
-------------------------------+-------------------------
Changes (by hellofromTonya):

 * status:  new => closed
 * version:  6.6.1 =>
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 Hello @yperret,

 Welcome to WordPress Core's Trac.

 As @the-ank noted (thank you!), there's an extra space in the supplied
 example code which will cause the problem you noted:

 {{{
 'post_name '    => "logout-page",
 }}}

 In testing the supplied code with the key as `'post_name'`, it works for
 me. Closing this ticket as `worksforme`. However, if the problem persists
 after changing the `'post_name'` key, please reopen to share your
 findings.

 Note: I'm also removing the `Version` as 6.6.1 did not include changes to
 this area of the code.

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


More information about the wp-trac mailing list