Changeset 10460 for trunk/src/bp-xprofile/bp-xprofile-template.php
- Timestamp:
- 01/25/2016 01:49:30 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-template.php
r10434 r10460 444 444 * Output the class attribute for a field. 445 445 * 446 * @param string|bool $class Extra classes to append to class attribute. 446 * @since 1.0.0 447 * 448 * @param array|string $class Extra classes to append to class attribute. 449 * Pass mutiple class names as an array or 450 * space-delimited string. 451 * 452 * @return string 447 453 */ 448 454 function bp_field_css_class( $class = false ) { … … 462 468 463 469 if ( ! empty( $class ) ) { 464 $css_classes[] = sanitize_title( esc_attr( $class ) ); 470 if ( ! is_array( $class ) ) { 471 $class = preg_split( '#\s+#', $class ); 472 } 473 $css_classes = array_map( 'sanitize_html_class', $class ); 465 474 } 466 475
Note: See TracChangeset
for help on using the changeset viewer.