Implement canonical and url_to_postid() tests for child pages which share a post name with other child pages.

See #32759


git-svn-id: https://develop.svn.wordpress.org/trunk@32918 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2015-06-24 00:40:45 +00:00
parent 06ed4c4d0f
commit 8c22c526bd
3 changed files with 60 additions and 0 deletions
+2
View File
@@ -79,6 +79,8 @@ class Tests_Canonical extends WP_Canonical_UnitTestCase {
array( '/child-page-1/', '/parent-page/child-page-1/'),
array( '/?page_id=144', '/parent-page/child-page-1/'),
array( '/abo', '/about/' ),
array( '/parent/child1/grandchild/', '/parent/child1/grandchild/' ),
array( '/parent/child2/grandchild/', '/parent/child2/grandchild/' ),
// Posts
array( '?p=587', '/2008/06/02/post-format-test-audio/'),