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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 13 17:01:23 UTC 2012


#15963: Don't try to add orphaned pages' parents' slugs to the page URL
-------------------------------------------------+-------------------------
 Reporter:  filosofo                             |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  General                              |  Release
 Severity:  normal                               |     Version:  3.1
 Keywords:  has-patch 3.2-early needs-testing    |  Resolution:
  2nd-opinion                                    |
-------------------------------------------------+-------------------------
Changes (by MikeHansenMe):

 * keywords:  has-patch 3.2-early => has-patch 3.2-early needs-testing 2nd-
     opinion


Comment:

 This seems to fix the problem in version (3.5-alpha-21751).

 Code used to test:[[BR]]
 <?php [[BR]]
 $uri = get_page_uri(get_the_ID());[[BR]]
 echo '<a href="'. $uri .'">The Page</a>'; [[BR]]
 ?>[[BR]]
 The output :[[BR]]
 <a href="sample-page/thistoo">The Page</a>[[BR]]
 [[BR]]
 My main concern is I was not using permalinks...

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15963#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list