Changeset 7221
- Timestamp:
- 11/19/2021 04:05:59 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/common/template.php
r7213 r7221 966 966 * @return array Body Classes 967 967 */ 968 function bbp_body_class( $wp_classes , $custom_classes = false ) {969 970 // Default classes971 $bbp_classes = array( 'no-js');968 function bbp_body_class( $wp_classes = array(), $custom_classes = false ) { 969 970 // Default to no classes 971 $bbp_classes = array(); 972 972 973 973 /** Archives **************************************************************/ … … 1078 1078 } 1079 1079 1080 /** Clean up**************************************************************/1081 1082 // A dd bbPress class if we are within a bbPress page1080 /** General ***************************************************************/ 1081 1082 // Any page with bbPress content 1083 1083 if ( ! empty( $bbp_classes ) ) { 1084 1084 $bbp_classes[] = 'bbpress'; 1085 } 1085 $bbp_classes[] = 'no-js'; 1086 } 1087 1088 /** Clean up **************************************************************/ 1086 1089 1087 1090 // Merge WP classes with bbPress classes and remove any duplicates
Note: See TracChangeset
for help on using the changeset viewer.