Changeset 3954 for branches/plugin/bbp-includes/bbp-core-functions.php
- Timestamp:
- 06/12/2012 08:19:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-functions.php
r3950 r3954 154 154 */ 155 155 function bbp_register_view( $view, $title, $query_args = '', $feed = true ) { 156 $ views = bbpress()->views;156 $bbp = bbpress(); 157 157 $view = sanitize_title( $view ); 158 158 $title = esc_html( $title ); … … 167 167 $query_args['show_stickies'] = false; 168 168 169 $ views[$view] = array(169 $bbp->views[$view] = array( 170 170 'title' => $title, 171 171 'query' => $query_args, … … 173 173 ); 174 174 175 return $ views[$view];175 return $bbp->views[$view]; 176 176 } 177 177
Note: See TracChangeset
for help on using the changeset viewer.