|
@@ 538-541 (lines=4) @@
|
| 535 |
|
$options[ 'class' ] = implode( ' ', $options[ 'class' ] ); |
| 536 |
|
|
| 537 |
|
$options[ 'class' ] = (string) $options[ 'class' ]; |
| 538 |
|
if ( isset( $attributes[ 'class' ] ) ) |
| 539 |
|
$attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $options[ 'class' ]; |
| 540 |
|
else |
| 541 |
|
$attributes[ 'class' ] = $options[ 'class' ]; |
| 542 |
|
|
| 543 |
|
$attributes[ 'class' ] = trim( $attributes[ 'class' ] ); |
| 544 |
|
} |
|
@@ 547-550 (lines=4) @@
|
| 544 |
|
} |
| 545 |
|
|
| 546 |
|
if ( !empty( $classes ) ) { |
| 547 |
|
if ( isset( $attributes[ 'class' ] ) ) |
| 548 |
|
$attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $classes; |
| 549 |
|
else |
| 550 |
|
$attributes[ 'class' ] = $classes; |
| 551 |
|
} |
| 552 |
|
|
| 553 |
|
if ( isset( $options[ 'placeholder' ] ) && !empty( $options[ 'placeholder' ] ) ) { |