Make WordPress Core


Ignore:
Timestamp:
11/13/2014 02:24:43 AM (12 years ago)
Author:
boonebgorges
Message:

Pass query object to 'the_post' filter.

Props tlovett1.
Fixes #30327.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r30122 r30323  
    45914591                 *
    45924592                 * @since 2.8.0
     4593                 * @since 4.1.0 Introduced $this parameter.
    45934594                 *
    4594                  * @param WP_Post &$post The Post object (passed by reference).
     4595                 * @param WP_Post  &$post The Post object (passed by reference).
     4596                 * @param WP_Query &$this The current Query object (passed by reference).
    45954597                 */
    4596                 do_action_ref_array( 'the_post', array( &$post ) );
     4598                do_action_ref_array( 'the_post', array( &$post, &$this ) );
    45974599
    45984600                return true;
Note: See TracChangeset for help on using the changeset viewer.