Changeset 9390
- Timestamp:
- 01/21/2015 07:36:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-theme-compatibility.php
r9351 r9390 310 310 $bp = buddypress(); 311 311 312 if ( empty( $bp->theme_compat->active ) ) 312 if ( empty( $bp->theme_compat->active ) ) { 313 313 return false; 314 } 314 315 315 316 return $bp->theme_compat->active; … … 393 394 $bp = buddypress(); 394 395 395 if ( empty( $bp->theme_compat->original_template ) ) 396 if ( empty( $bp->theme_compat->original_template ) ) { 396 397 return false; 398 } 397 399 398 400 return (bool) ( $bp->theme_compat->original_template == $template ); … … 603 605 604 606 // Bail if the template already matches a BuddyPress template 605 if ( ! empty( buddypress()->theme_compat->found_template ) )607 if ( ! empty( buddypress()->theme_compat->found_template ) ) { 606 608 return $template; 609 } 607 610 608 611 /** … … 652 655 653 656 // Bail if not the main loop where theme compat is happening 654 if ( ! bp_do_theme_compat() ) 657 if ( ! bp_do_theme_compat() ) { 655 658 return $content; 659 } 656 660 657 661 // Set theme compat to false early, to avoid recursion from nested calls to … … 663 667 664 668 // Juggle the content around and try to prevent unsightly comments 665 if ( ! empty( $new_content ) && ( $new_content !== $content ) ) {669 if ( ! empty( $new_content ) && ( $new_content !== $content ) ) { 666 670 667 671 // Set the content to be the new content … … 719 723 720 724 // Filters exist in this priority 721 if ( ! empty( $priority ) && isset( $wp_filter[$tag][$priority] ) ) {725 if ( ! empty( $priority ) && isset( $wp_filter[$tag][$priority] ) ) { 722 726 723 727 // Store filters in a backup … … 775 779 776 780 // Filters exist in this priority 777 if ( ! empty( $priority ) && isset( $bp->filters->wp_filter[$tag][$priority] ) ) {781 if ( ! empty( $priority ) && isset( $bp->filters->wp_filter[$tag][$priority] ) ) { 778 782 779 783 // Store filters in a backup
Note: See TracChangeset
for help on using the changeset viewer.