[31467] included a change that involved generating meta_query SQL before the `pre_get_comments` hook, with the result that `pre_get_comments` callbacks were no longer able to modify comment meta queries. We fix the problem by moving the SQL generation to after the hook. This changeset also includes a second call to `meta_query->parse_query_vars()`, to ensure that modifications to metadata-related query vars (such as `meta_key` and `meta_value`) performed in `pre_get_comments` callbacks have the expected effect on the comment query. Fixes #32762. Built from https://develop.svn.wordpress.org/trunk@32911 git-svn-id: http://core.svn.wordpress.org/trunk@32882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
100 KiB
100 KiB