[wp-trac] [WordPress Trac] #33272: strange behavior with pages when added more than one with same title.

WordPress Trac noreply at wordpress.org
Wed Aug 5 09:12:00 UTC 2015


#33272: strange behavior with pages when added more than one with same title.
--------------------------+-----------------------------
 Reporter:  satalways     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.2.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi,

 When I add few pages with same title like I am adding (My Page, My Page,
 My Page, My Page) 4 times. Pretty permalink is enabled and their IDs are
 (1, 3, 5, 7). Their slugs are (my-page, my-page2, my-page3, my-page4). All
 pages are published.

  I am using WordPress function get_page_link(5). It always returned link
 of first page with ID 1. Why is this happening.. One more thing I opened
 page 5 in browser like http://localhost/my-page3/ When I click on Edit
 Page at top in Admin bar it always goes to edit 1 not 5.

 I am testing all this with latest version of WordPress 4.2.4.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33272>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list