[wp-trac] [WordPress Trac] #35209: Permalinks of published pages get changed when creating new pages as a draft

WordPress Trac noreply at wordpress.org
Thu Dec 24 00:10:55 UTC 2015


#35209: Permalinks of published pages get changed when creating new pages as a
draft
--------------------------+------------------------------
 Reporter:  Asgaros       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Permalinks    |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------

Comment (by Asgaros):

 I think I found a first solution for this.

 In '''Step 4''' after clicking the ''OK'' button, the permalink gets
 changed back to ''test-2'' correctly because the already published ''Test
 1'' page is using ''test'' as a permalink. '''BUT''' the ''Slug'' input
 field ''(ID: #post_name)'' is not set to the correct value:

 [[Image(http://fs5.directupload.net/images/151224/wxdhg7pd.png)]]

 So when you save the page as a draft, the permalink gets incorrectly saved
 as ''test'' in the database.

 I have uploaded a first patch ''(35209.1.patch)'' which will set the
 ''Slug'' input field to the correct value when doing the actions described
 in '''step 4'''.

 But it is still possible to set the value of the '''Slug''' input field to
 the value ''"test"'' manually. When you save the page as a draft after it,
 the value will not changed to a correct ''"test-2"'' value, so we still
 need a little bit more work for a good solution to this problem. :)

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


More information about the wp-trac mailing list