Changeset 13878 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 06/01/2024 04:26:18 PM (20 months ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r13844 r13878 473 473 */ 474 474 $options = apply_filters( 'bp_search_form_type_select_options', $options ); 475 foreach ( (array) $options as $option_value => $option_title ) {475 foreach ( (array) $options as $option_value => $option_title ) { 476 476 $selection_box .= sprintf( '<option value="%s">%s</option>', esc_attr( $option_value ), esc_html( $option_title ) ); 477 477 } … … 679 679 $attributes = (array) apply_filters( 'bp_get_form_field_attributes', $attributes, $name ); 680 680 681 foreach ( $attributes as $attr => $value ) {681 foreach ( $attributes as $attr => $value ) { 682 682 // Numeric keyed array. 683 683 if (is_numeric( $attr ) ) { … … 3220 3220 // Add current user member types. 3221 3221 if ( $member_types = bp_get_member_type( bp_displayed_user_id(), false ) ) { 3222 foreach ( $member_types as $member_type ) {3222 foreach ( $member_types as $member_type ) { 3223 3223 $bp_classes[] = sprintf( 'member-type-%s', esc_attr( $member_type ) ); 3224 3224 } … … 3509 3509 $submenus = array(); 3510 3510 3511 foreach ( $nav_menu->children as $sub_menu ) {3511 foreach ( $nav_menu->children as $sub_menu ) { 3512 3512 $submenu = new stdClass; 3513 3513 $submenu->class = array( 'menu-child' );
Note: See TracChangeset
for help on using the changeset viewer.