Changeset 2033
- Timestamp:
- 10/05/2009 06:39:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums.php
r2032 r2033 167 167 do_action( 'bbpress_init' ); 168 168 169 $query = new BB_Query( 'topic', 'topic_id=' . $topic_id );169 $query = new BB_Query( 'topic', 'topic_id=' . $topic_id . '&page=1' /* Page override so bbPress doesn't use the URI */ ); 170 170 171 171 return $query->results[0]; … … 173 173 174 174 function bp_forums_get_topic_id_from_slug( $topic_slug ) { 175 do_action( 'bbpress_init' ); 175 do_action( 'bbpress_init' ); 176 176 return bb_get_id_from_slug( 'topic', $topic_slug ); 177 177 }
Note: See TracChangeset
for help on using the changeset viewer.