mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-30 16:17:56 +02:00
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() {
|
function &get_posts() {
|
||||||
global $wpdb, $pagenow, $request, $user_ID;
|
global $wpdb, $pagenow, $request, $user_ID;
|
||||||
|
|
||||||
|
do_action('pre_get_posts', array(&$this));
|
||||||
|
|
||||||
// Shorthand.
|
// Shorthand.
|
||||||
$q = $this->query_vars;
|
$q = $this->query_vars;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user