[wp-trac] [WordPress Trac] #35084: check for post status in get_page_uri causes issues with permalinks

WordPress Trac noreply at wordpress.org
Sat Dec 26 03:45:31 UTC 2015


#35084: check for post status in get_page_uri causes issues with permalinks
---------------------------------------------+---------------------
 Reporter:  tharsheblows                     |       Owner:  netweb
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.4.1
Component:  Permalinks                       |     Version:  4.4
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+---------------------
Changes (by dd32):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36094"]:
 {{{
 #!CommitTicketReference repository="" revision="36094"
 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.

 Props tharsheblows.
 See #15963.
 Fixes #35084.
 }}}

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


More information about the wp-trac mailing list