[wp-trac] [WordPress Trac] #39078: Theme starter content pages 404 if multiple auto-drafts were saved

WordPress Trac noreply at wordpress.org
Mon Dec 5 03:54:44 UTC 2016


#39078: Theme starter content pages 404 if multiple auto-drafts were saved
-------------------------------------------------+-------------------------
 Reporter:  dlh                                  |       Owner:
     Type:  defect (bug)                         |  westonruter
 Priority:  high                                 |      Status:  accepted
Component:  Customize                            |   Milestone:  4.7
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch needs-testing has-unit-    |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by dlh):

 @westonruter The patch fixes the issue in my testing.

 I noticed one side effect: If the Customizer loads with starter content,
 and there is a `url` query parameter for a starter content page (like
 `?url=http%3A%2F%2Fwp.dev%2Fcontact%2F`), the preview will show "not
 found." It looks like the Customizer attempts to preview `/contact/`,
 which invokes `get_page_by_path()`, which in turn queries for a
 `post_name`.

 But I got into this scenario as I was reinstalling and refreshing quite a
 bit during testing, and I'm not sure how it would naturally occur. Plus,
 if you then click the link to the page in the nav menu, the starter
 content works as expected.

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


More information about the wp-trac mailing list