Make WordPress Core

Ticket #30327: the-post-pass-query-ref.diff

File the-post-pass-query-ref.diff, 423 bytes (added by tlovett1, 10 years ago)

Patch that passes reference to current query to "the_post"

  • wp-includes/query.php

     
    45934593                 *
    45944594                 * @param WP_Post &$post The Post object (passed by reference).
    45954595                 */
    4596                 do_action_ref_array( 'the_post', array( &$post ) );
     4596                do_action_ref_array( 'the_post', array( &$post, &$this ) );
    45974597
    45984598                return true;
    45994599        }