Files
wordpress-develop/tests/phpunit/tests
Boone Gorges 12784e13d4 Improve method consistency in WP_Comment_Query.
* Introduce a `__construct()` method, which can accept an array of query vars.
* Move query logic out of `query()` method and into a new `get_comments()` method.
* Ensure that `$this->comments` is set whenever `get_comments()` returns a value.
* Introduce a `parse_query()` method, where query vars are parsed with default values and the 'parse_comment_query' action is fired.

These changes bring `WP_Comment_Query` syntax closer to that of `WP_Query`.

Props westonruter, morganestes, boonebgorges.
Fixes #24826.

git-svn-id: https://develop.svn.wordpress.org/trunk@31793 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-16 14:23:33 +00:00
..
2015-03-05 13:14:28 +00:00
2013-12-01 12:47:35 +00:00
2015-03-11 20:11:38 +00:00
2015-01-31 02:11:46 +00:00
2015-03-05 13:14:28 +00:00
2014-10-17 22:14:49 +00:00
2014-08-01 20:35:25 +00:00