Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #48658, comment 1


Ignore:
Timestamp:
11/15/2019 11:12:28 PM (5 years ago)
Author:
raamdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48658, comment 1

    v2 v3  
    99If you reverse the process and create the Post first, the permalink also leads you to the Page instead of the Post.
    1010
    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%/`).
     11It 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%/`).