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/topics/template.php

    r6573 r6582  
    441441         */
    442442        function bbp_get_topic_id( $topic_id = 0 ) {
    443                 global $wp_query;
    444 
    445                 $bbp = bbpress();
     443                $bbp      = bbpress();
     444                $wp_query = bbp_get_global_object( 'wp_query', 'WP_Query' );
    446445
    447446                // Easy empty checking
Note: See TracChangeset for help on using the changeset viewer.