Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/23/2013 09:45:06 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Introduce current_view_id to bbPress class variables. Used when calling a topic view shortcode via bbp-single-view so subsequent calls to bbp_view_query are able to retrieve the $view_id via bbp_get_view_id() the same way bbp_get_topic_id() works. Fixes #2457.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/shortcodes.php

    r5134 r5163  
    126126
    127127        // Unset global ID's
     128        $bbp->current_view_id      = 0;
    128129        $bbp->current_forum_id     = 0;
    129130        $bbp->current_topic_id     = 0;
     
    624625        $this->unset_globals();
    625626
     627        // Set the current view ID
     628        bbpress()->current_view_id = $view_id;
     629
    626630        // Load the view
    627631        bbp_view_query( $view_id );
Note: See TracChangeset for help on using the changeset viewer.