Wordpress/tests/phpunit/tests/comment
Boone Gorges 641e701865 In WP_Comment_Query, parse meta_query vars after the pre_get_comments hook.
[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.

git-svn-id: https://develop.svn.wordpress.org/trunk@32911 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-23 14:35:29 +00:00
..
checkComment.php Add tests for check_comment(). 2015-05-20 19:08:07 +00:00
commentForm.php In comment_form(), ensure that filtered arguments contain all required default values. 2015-05-19 01:03:39 +00:00
dateQuery.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getCommentsPagesCount.php Pinking shears in unit test files. 2015-03-05 13:14:28 +00:00
getPageOfComment.php Add basic unit tests for get_page_of_comment(). 2015-01-29 02:30:22 +00:00
query.php In WP_Comment_Query, parse meta_query vars after the pre_get_comments hook. 2015-06-23 14:35:29 +00:00
slashes.php Fix typo in a comment in slashing tests. 2015-01-07 07:08:47 +00:00
template.php Allow get_comments_number() to officially accept $post or $post_id. Adds unit tests. 2014-05-23 17:43:03 +00:00
walker.php Ensure that a has_children parameter is given to Walker::start_el(). 2014-06-24 17:05:56 +00:00