[wp-trac] [WordPress Trac] #39417: get_queried_object() stopped working on author archive template in WP 4.7
WordPress Trac
noreply at wordpress.org
Wed Dec 28 17:24:03 UTC 2016
#39417: get_queried_object() stopped working on author archive template in WP 4.7
--------------------------+-----------------------------
Reporter: mekshq | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.7
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hi,
In WP 4.7 get_queried_object() function doesn't work anymore if called
inside author archive. It doesn't return anything. Also,
get_queried_object_id() always returns 0.
This is working fine when permalinks are set to "plain" (i.e. ?author=5),
but not if permalinks are set to "post name" (i.e. author/some-author-
slug)
That's what we have found so far. Any feedback is highly appreciated.
Thanks,
Meks
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39417>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list