Changes between Version 2 and Version 3 of Ticket #48658, comment 1
- Timestamp:
- 11/15/2019 11:12:28 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #48658, comment 1
v2 v3 9 9 If you reverse the process and create the Post first, the permalink also leads you to the Page instead of the Post. 10 10 11 It looks like this is because [[https://github.com/WordPress/WordPress/blob/3a735ec87af655d53838819939bf56efc6e9646e/wp-includes/post.php#L4388|/wp-includes/post.php#L4388]] assumes that Pages are in a separate namespace from Posts (this assumption is noted in an earlier comment: [[https://github.com/WordPress/WordPress/blob/3a735ec87af655d53838819939bf56efc6e9646e/wp-includes/post.php#L4360-L4363|/wp-includes/post.php#L4360-L4363]]), but this is not the case when the Permalinks are set to "Post name" (`/%postname%/`).11 It looks like this is because [[https://github.com/WordPress/WordPress/blob/3a735ec87af655d53838819939bf56efc6e9646e/wp-includes/post.php#L4388|/wp-includes/post.php#L4388]] assumes that Pages are in a separate namespace from Posts (this assumption is noted in an earlier comment: [[https://github.com/WordPress/WordPress/blob/3a735ec87af655d53838819939bf56efc6e9646e/wp-includes/post.php#L4360-L4363|/wp-includes/post.php#L4360-L4363]]), but this is not the case for top-level Pages when the Permalinks are set to "Post name" (`/%postname%/`).