diff --git bp-core/bp-core-functions.php bp-core/bp-core-functions.php
index ffe015e..3a26fae 100644
|
|
function bp_core_add_illegal_names() { |
532 | 532 | update_site_option( 'illegal_names', get_site_option( 'illegal_names' ), array() ); |
533 | 533 | } |
534 | 534 | |
| 535 | /** |
| 536 | * Determine whether BuddyPress should register the bp-themes directory. |
| 537 | * |
| 538 | * @since BuddyPress (1.9.0) |
| 539 | * |
| 540 | * @return bool True if bp-themes should be registered, false otherwise. |
| 541 | */ |
| 542 | function bp_do_register_theme_directory() { |
| 543 | $register = 'bp-default' === get_stylesheet() || 'bp-default' === get_template(); |
| 544 | return apply_filters( 'bp_do_register_theme_directory', $register ); |
| 545 | } |
| 546 | |
535 | 547 | /** URI ***********************************************************************/ |
536 | 548 | |
537 | 549 | /** |
diff --git bp-loader.php bp-loader.php
index 2cbe02c..754c3ef 100644
|
|
class BuddyPress { |
530 | 530 | * @todo Move bp-default to wordpress.org/extend/themes and remove this |
531 | 531 | */ |
532 | 532 | public function register_theme_directory() { |
| 533 | if ( ! bp_do_register_theme_directory() ) { |
| 534 | return; |
| 535 | } |
| 536 | |
533 | 537 | register_theme_directory( $this->old_themes_dir ); |
534 | 538 | } |
535 | 539 | |