pre_get_posts action from ringmaster. fixes #1736
git-svn-id: https://develop.svn.wordpress.org/trunk@2938 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3757394e6d
commit
342e12282c
@ -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
Block a user