Changeset 5163
- Timestamp:
- 11/23/2013 09:45:06 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bbpress.php
r5134 r5163 244 244 /** Queries ***********************************************************/ 245 245 246 $this->current_view_id = 0; // Current view id 246 247 $this->current_forum_id = 0; // Current forum id 247 248 $this->current_topic_id = 0; // Current topic id -
trunk/includes/common/shortcodes.php
r5134 r5163 126 126 127 127 // Unset global ID's 128 $bbp->current_view_id = 0; 128 129 $bbp->current_forum_id = 0; 129 130 $bbp->current_topic_id = 0; … … 624 625 $this->unset_globals(); 625 626 627 // Set the current view ID 628 bbpress()->current_view_id = $view_id; 629 626 630 // Load the view 627 631 bbp_view_query( $view_id ); -
trunk/includes/common/template.php
r5134 r5163 1902 1902 $bbp = bbpress(); 1903 1903 1904 $view = !empty( $view ) ? sanitize_title( $view ) : get_query_var( bbp_get_view_rewrite_id() ); 1905 1906 if ( array_key_exists( $view, $bbp->views ) ) 1904 if ( !empty( $view ) ) { 1905 $view = sanitize_title( $view ); 1906 } elseif ( ! empty( $bbp->current_view_id ) ) { 1907 $view = $bbp->current_view_id; 1908 } else { 1909 $view = get_query_var( bbp_get_view_rewrite_id() ); 1910 } 1911 1912 if ( array_key_exists( $view, $bbp->views ) ) { 1907 1913 return $view; 1914 } 1908 1915 1909 1916 return false;
Note: See TracChangeset
for help on using the changeset viewer.