Opened 8 years ago
Closed 8 years ago
#36997 closed defect (bug) (invalid)
WP_Query Bug
Reported by: | VPETROSYAN | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.5.2 |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description
When There is a taxonomy with slug 'author', using WP_Query(http://prntscr.com/bbaw7d) with param author returns wrong sql(http://prntscr.com/bbasfr) because of this code http://prntscr.com/bbas3x
To reproduce:
- register a taxonomy with slug author.
- new WP_Query(array('author' => get_current_user_id());
Change History (2)
Note: See
TracTickets for help on using
tickets.
documented in codex are reserved terms: https://codex.wordpress.org/Reserved_Terms