[wp-trac] [WordPress Trac] #40042: Empty Author ID on first time action pre_get_post is called.
WordPress Trac
noreply at wordpress.org
Wed Mar 8 23:58:44 UTC 2017
#40042: Empty Author ID on first time action pre_get_post is called.
--------------------------+----------------------
Reporter: BackuPs | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 4.7.2
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by dd32):
* status: reopened => closed
* resolution: => invalid
* component: General => Query
Comment:
> Did you try your solution as it does not work for me whereas mine works.
But still why is not the id set to the query record? That is easy to do
from within the wp system.
I'm not sure what you're asking here, the code I gave was an example, not
a full solution.
What you describe in your ticket is expected - the `author` query variable
will be empty during a URL query such as `/author/admin`.
The ticket is invalid due to what I explained above, I'm re-closing it as
such. Discussion can continue after a ticket is closed, and people will
still see it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40042#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list