pre_get_posts action from ringmaster. fixes #1736
git-svn-id: http://svn.automattic.com/wordpress/trunk@2938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a7fc7ec1b7
commit
5a87d54700
|
@ -237,6 +237,8 @@ class WP_Query {
|
|||
function &get_posts() {
|
||||
global $wpdb, $pagenow, $request, $user_ID;
|
||||
|
||||
do_action('pre_get_posts', array(&$this));
|
||||
|
||||
// Shorthand.
|
||||
$q = $this->query_vars;
|
||||
|
||||
|
|
Loading…
Reference in New Issue