Changeset 8158
- Timestamp:
- 03/25/2014 06:40:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-functions.php
r7952 r8158 606 606 */ 607 607 function bp_do_register_theme_directory() { 608 // If bp-default exists in another theme directory, bail. 609 // This ensures that the version of bp-default in the regular themes 610 // directory will always take precedence, as part of a migration away 611 // from the version packaged with BuddyPress 612 foreach ( array_values( (array) $GLOBALS['wp_theme_directories'] ) as $directory ) { 613 if ( is_dir( $directory . '/bp-default' ) ) { 614 return false; 615 } 616 } 617 618 // If the current theme is bp-default (or a bp-default child), BP 619 // should register its directory 608 620 $register = 'bp-default' === get_stylesheet() || 'bp-default' === get_template(); 609 621
Note: See TracChangeset
for help on using the changeset viewer.