Pass query object to 'the_post' filter.

Props tlovett1.
Fixes #30327.
Built from https://develop.svn.wordpress.org/trunk@30323


git-svn-id: http://core.svn.wordpress.org/trunk@30322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2014-11-13 02:25:22 +00:00
parent a0b8caa29b
commit 912cdc5978
2 changed files with 5 additions and 3 deletions

View File

@ -4590,10 +4590,12 @@ class WP_Query {
* Fires once the post data has been setup.
*
* @since 2.8.0
* @since 4.1.0 Introduced $this parameter.
*
* @param WP_Post &$post The Post object (passed by reference).
* @param WP_Post &$post The Post object (passed by reference).
* @param WP_Query &$this The current Query object (passed by reference).
*/
do_action_ref_array( 'the_post', array( &$post ) );
do_action_ref_array( 'the_post', array( &$post, &$this ) );
return true;
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.1-alpha-30322';
$wp_version = '4.1-alpha-30323';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.