[wp-trac] [WordPress Trac] #55218: WP_Comment_Query: "Column 'comment_ID' in where clause is ambiguous" when mixing 'include_unapproved' and 'meta_query'

WordPress Trac noreply at wordpress.org
Tue Apr 26 04:56:17 UTC 2022


#55218: WP_Comment_Query: "Column 'comment_ID' in where clause is ambiguous" when
mixing 'include_unapproved' and 'meta_query'
----------------------------+---------------------
 Reporter:  genosseeinhorn  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  6.0
Component:  Comments        |     Version:  5.9
 Severity:  minor           |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------

Comment (by peterwilsoncc):

 Thanks for the report and patch @genosseeinhorn, I can see why that is
 happening.

 I've created [https://github.com/WordPress/wordpress-develop/pull/2627
 linked a pull request] that simply contains your patch so I can get the
 test suite running. I suspect some tests may need to be updated to account
 for the change in SQL query.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55218#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list