mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Options: Avoid extra tabs in a textarea in wp-admin/options.php
.
See #43252. Built from https://develop.svn.wordpress.org/trunk@42671 git-svn-id: http://core.svn.wordpress.org/trunk@42499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cceab04984
commit
a65ce4e34b
@ -290,12 +290,8 @@ foreach ( (array) $options as $option ) :
|
||||
<tr>
|
||||
<th scope="row"><label for="<?php echo $name; ?>"><?php echo esc_html( $option->option_name ); ?></label></th>
|
||||
<td>
|
||||
<?php if ( strpos( $value, "\n" ) !== false ) : ?>
|
||||
<textarea class="<?php echo $class; ?>" name="<?php echo $name; ?>" id="<?php echo $name; ?>" cols="30" rows="5">
|
||||
<?php
|
||||
echo esc_textarea( $value );
|
||||
?>
|
||||
</textarea>
|
||||
<?php if ( strpos( $value, "\n" ) !== false ) : ?>
|
||||
<textarea class="<?php echo $class; ?>" name="<?php echo $name; ?>" id="<?php echo $name; ?>" cols="30" rows="5"><?php echo esc_textarea( $value ); ?></textarea>
|
||||
<?php else : ?>
|
||||
<input class="regular-text <?php echo $class; ?>" type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr( $value ); ?>"<?php disabled( $disabled, true ); ?> />
|
||||
<?php endif ?></td>
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42670';
|
||||
$wp_version = '5.0-alpha-42671';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user