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:
Ryan Boren 2005-10-06 17:27:57 +00:00
parent 3757394e6d
commit 342e12282c
1 changed files with 2 additions and 0 deletions

View File

@ -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;