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:
Sergey Biryukov 2018-02-08 10:58:31 +00:00
parent cceab04984
commit a65ce4e34b
2 changed files with 3 additions and 7 deletions

View File

@ -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>

View File

@ -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.