|
@@ 451-454 (lines=4) @@
|
| 448 |
|
$options[ 'class' ] = implode( ' ', $options[ 'class' ] ); |
| 449 |
|
|
| 450 |
|
$options[ 'class' ] = (string) $options[ 'class' ]; |
| 451 |
|
if ( isset( $attributes[ 'class' ] ) ) |
| 452 |
|
$attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $options[ 'class' ]; |
| 453 |
|
else |
| 454 |
|
$attributes[ 'class' ] = $options[ 'class' ]; |
| 455 |
|
|
| 456 |
|
$attributes[ 'class' ] = trim( $attributes[ 'class' ] ); |
| 457 |
|
} |
|
@@ 460-463 (lines=4) @@
|
| 457 |
|
} |
| 458 |
|
|
| 459 |
|
if ( !empty( $classes ) ) { |
| 460 |
|
if ( isset( $attributes[ 'class' ] ) ) |
| 461 |
|
$attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $classes; |
| 462 |
|
else |
| 463 |
|
$attributes[ 'class' ] = $classes; |
| 464 |
|
} |
| 465 |
|
|
| 466 |
|
if ( isset( $options[ 'placeholder' ] ) && !empty( $options[ 'placeholder' ] ) ) { |