[wp-trac] [WordPress Trac] #35084: check for post status in get_page_uri causes issues with permalinks
WordPress Trac
noreply at wordpress.org
Mon Dec 14 22:16:54 UTC 2015
#35084: check for post status in get_page_uri causes issues with permalinks
--------------------------+-----------------------------
Reporter: tharsheblows | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: 4.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The check for 'publish' here [34001] is causing permalinks to be incorrect
if post ancestors have a custom post status, eg 'private' or 'closed' in
bbPress -- it skips them in making the permalink and they need to be in
there.
As the original issue was with trashed posts, the patch just makes sure
post_status isn't trash and the unit test still passes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35084>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list