[wp-trac] [WordPress Trac] #15963: Don't try to add orphaned pages' parents' slugs to the page URL

WordPress Trac noreply at wordpress.org
Sun Dec 27 02:15:32 UTC 2015


#15963: Don't try to add orphaned pages' parents' slugs to the page URL
----------------------------------+---------------------------
 Reporter:  filosofo              |       Owner:  DrewAPicture
     Type:  defect (bug)          |      Status:  closed
 Priority:  normal                |   Milestone:  4.4
Component:  Posts, Post Types     |     Version:  3.1
 Severity:  normal                |  Resolution:  fixed
 Keywords:  has-patch needs-docs  |     Focuses:
----------------------------------+---------------------------

Comment (by dd32):

 In [changeset:"36105"]:
 {{{
 #!CommitTicketReference repository="" revision="36105"
 Pages: `get_page_uri()` should return the URI at which the resource being
 accessed is available at, this may include non-'publish' status posts.

 Reverts [34001] and fixes the original issue in #15963 - avoiding a PHP
 Notice for when the post doesn't exist.

 Merges [36094] to the 4.4 branch.
 Props tharsheblows.
 See #15963.
 Fixes #35084.
 }}}

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


More information about the wp-trac mailing list