Changeset 2944 for branches/plugin/bbp-includes/bbp-hooks.php
- Timestamp:
- 02/28/2011 10:15:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-hooks.php
r2926 r2944 287 287 bbp_pre_anonymous_filters(); 288 288 289 /** 290 * On multiblog installations you must first allow themes to be activated and show 291 * up on the theme selection screen. This function will let the bbPress bundled 292 * themes show up and bypass this step. 293 * 294 * @since bbPress (r2944) 295 * 296 * @uses is_super_admin() 297 * @uses apply_filters() 298 */ 299 function bbp_allowed_themes( $themes ) { 300 if ( !is_super_admin() ) 301 return $themes; 302 303 $themes['bbp-twentyten'] = 1; 304 305 return apply_filters( 'bbp_allowed_themes', $themes ); 306 } 307 add_filter( 'allowed_themes', 'bbp_allowed_themes' ); 308 289 309 ?>
Note: See TracChangeset
for help on using the changeset viewer.