[wp-trac] [WordPress Trac] #36997: WP_Query Bug
WordPress Trac
noreply at wordpress.org
Thu Jun 2 05:46:49 UTC 2016
#36997: WP_Query Bug
--------------------------+-----------------------------
Reporter: VPETROSYAN | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.5.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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:
1. register a taxonomy with slug author.
2. new WP_Query(array('author' => get_current_user_id());
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36997>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list