Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/19/2017 02:03:14 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Globals: Use bbp_get_global_object() instead of touching $wp_query directly in template functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/template.php

    r6573 r6582  
    327327         */
    328328        function bbp_get_reply_id( $reply_id = 0 ) {
    329                 global $wp_query;
    330 
    331                 $bbp = bbpress();
     329                $bbp      = bbpress();
     330                $wp_query = bbp_get_global_object( 'wp_query', 'WP_Query' );
    332331
    333332                // Easy empty checking
Note: See TracChangeset for help on using the changeset viewer.