|
@@ 500-503 (lines=4) @@
|
| 497 |
|
$options[ 'class' ] = implode( ' ', $options[ 'class' ] ); |
| 498 |
|
|
| 499 |
|
$options[ 'class' ] = (string) $options[ 'class' ]; |
| 500 |
|
if ( isset( $attributes[ 'class' ] ) ) |
| 501 |
|
$attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $options[ 'class' ]; |
| 502 |
|
else |
| 503 |
|
$attributes[ 'class' ] = $options[ 'class' ]; |
| 504 |
|
|
| 505 |
|
$attributes[ 'class' ] = trim( $attributes[ 'class' ] ); |
| 506 |
|
} |
|
@@ 509-512 (lines=4) @@
|
| 506 |
|
} |
| 507 |
|
|
| 508 |
|
if ( !empty( $classes ) ) { |
| 509 |
|
if ( isset( $attributes[ 'class' ] ) ) |
| 510 |
|
$attributes[ 'class' ] = $attributes[ 'class' ] . ' ' . $classes; |
| 511 |
|
else |
| 512 |
|
$attributes[ 'class' ] = $classes; |
| 513 |
|
} |
| 514 |
|
|
| 515 |
|
if ( isset( $options[ 'placeholder' ] ) && !empty( $options[ 'placeholder' ] ) ) { |