Changeset 4593 for trunk/includes/core/theme-compat.php
- Timestamp:
- 12/20/2012 09:40:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/theme-compat.php
r4579 r4593 454 454 function bbp_template_include_theme_compat( $template = '' ) { 455 455 456 // Bail if the template already matches a bbPress template. This includes457 // archive-* and single-* WordPress post_type matches (allowing458 // themes to use the expected format) as well as all bbPress-specific459 // template files for users, topics, forums, etc...460 if ( !empty( bbpress()->theme_compat->bbpress_template ) )461 return $template;462 463 456 /** Users *************************************************************/ 464 457 … … 630 623 ) ); 631 624 } 625 626 /** 627 * Bail if the template already matches a bbPress template. This includes 628 * archive-* and single-* WordPress post_type matches (allowing 629 * themes to use the expected format) as well as all bbPress-specific 630 * template files for users, topics, forums, etc... 631 * 632 * We do this after the above checks to prevent incorrect 404 body classes 633 * and header statuses. 634 * 635 * @see http://bbpress.trac.wordpress.org/ticket/1478/ 636 */ 637 if ( !empty( bbpress()->theme_compat->bbpress_template ) ) 638 return $template; 632 639 633 640 /**
Note: See TracChangeset
for help on using the changeset viewer.