WordPress.org

WordPress build repository browser

Changeset 42499


Ignore:
Timestamp:
02/08/18 10:58:31 (2 weeks ago)
Author:
SergeyBiryukov
Message:

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

See #43252.
Built from https://develop.svn.wordpress.org/trunk@42671

Location:
trunk
Files:
2 edited

Legend:

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

    r42477 r42499  
    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 ); ?> /> 
  • trunk/wp-includes/version.php

    r42498 r42499  
    55 * @global string $wp_version 
    66 */ 
    7 $wp_version = '5.0-alpha-42670'; 
     7$wp_version = '5.0-alpha-42671'; 
    88 
    99/** 
Note: See TracChangeset for help on using the changeset viewer.