WordPress.org

Make WordPress Core

Changeset 42671


Ignore:
Timestamp:
02/08/2018 10:57:14 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Options: Avoid extra tabs in a textarea in wp-admin/options.php.

See #43252.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options.php

    r42648 r42671  
    291291    <th scope="row"><label for="<?php echo $name; ?>"><?php echo esc_html( $option->option_name ); ?></label></th>
    292292<td>
    293 <?php if ( strpos( $value, "\n" ) !== false ) : ?>
    294     <textarea class="<?php echo $class; ?>" name="<?php echo $name; ?>" id="<?php echo $name; ?>" cols="30" rows="5">
    295                                 <?php
    296                                 echo esc_textarea( $value );
    297     ?>
    298     </textarea>
     293    <?php if ( strpos( $value, "\n" ) !== false ) : ?>
     294        <textarea class="<?php echo $class; ?>" name="<?php echo $name; ?>" id="<?php echo $name; ?>" cols="30" rows="5"><?php echo esc_textarea( $value ); ?></textarea>
    299295    <?php else : ?>
    300296        <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 ); ?> />
Note: See TracChangeset for help on using the changeset viewer.