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

WordPress Trac noreply at wordpress.org
Mon Sep 9 09:58:13 UTC 2024


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

Comment (by the ank):

 Hello @yperret ,
                  I tried to replicate the issue and I found an error in
 the code mentioned above.


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

 There is a space before the closing single quote. If you remove the space,
 it starts working as expected.

 Correct Version -
 {{{
 'post_name' => "logout-page"
 }}}

 Regards

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


More information about the wp-trac mailing list