Changeset 3779
- Timestamp:
- 03/02/2012 03:26:03 AM (14 years ago)
- File:
-
- 1 edited
-
branches/plugin/bbpress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbpress.php
r3774 r3779 486 486 // Array of bbPress core actions 487 487 $actions = array( 488 'setup_theme', // Setup the default theme compat 488 489 'setup_current_user', // Setup currently logged in user 489 490 'register_post_types', // Register post types (forum|topic|reply) … … 506 507 507 508 /** Public Methods ********************************************************/ 509 510 /** 511 * Setup the default bbPress theme compatability location. 512 * 513 * @since bbPress (r3778) 514 */ 515 public function setup_theme() { 516 517 // Bail early if theme_compat was set already by a plugin 518 if ( !empty( $this->theme_compat ) ) 519 return; 520 521 // Set the defaults 522 $theme = new BBP_Theme_Compat(); 523 $theme->name = 'bbPress (Default)'; 524 $theme->version = bbp_get_version(); 525 $theme->dir = trailingslashit( $this->plugin_dir . 'bbp-theme-compat' ); 526 $theme->url = trailingslashit( $this->plugin_url . 'bbp-theme-compat' ); 527 528 bbp_setup_theme_compat( $theme ); 529 } 508 530 509 531 /**
Note: See TracChangeset
for help on using the changeset viewer.