WordPress.org

Make WordPress Core

Ticket #19598: 19598.2.diff

File 19598.2.diff, 4.0 KB (added by georgestephanis, 2 years ago)

Revised patch, tidying up/unifying how it does ltr for the code editor textareas.

  • wp-admin/theme-editor.php

     
    226226<?php if (!$error) { ?> 
    227227        <form name="template" id="template" action="theme-editor.php" method="post"> 
    228228        <?php wp_nonce_field('edit-theme_' . $file . $theme) ?> 
    229                  <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea> 
     229                 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" class="code" tabindex="1"><?php echo $content ?></textarea> 
    230230                 <input type="hidden" name="action" value="update" /> 
    231231                 <input type="hidden" name="file" value="<?php echo esc_attr($file) ?>" /> 
    232232                 <input type="hidden" name="theme" value="<?php echo esc_attr($theme) ?>" /> 
  • wp-admin/options-general.php

     
    113113</tr> 
    114114<tr valign="top"> 
    115115<th scope="row"><label for="admin_email"><?php _e('E-mail Address') ?> </label></th> 
    116 <td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" /> 
     116<td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text code" /> 
    117117<span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td> 
    118118</tr> 
    119119<tr valign="top"> 
  • wp-admin/css/wp-admin-rtl.dev.css

     
    111111        float: left; 
    112112} 
    113113 
     114input.code, 
     115textarea.code, 
     116select#docs-list { 
     117        direction: ltr; 
     118} 
    114119 
     120 
    115121/*------------------------------------------------------------------------------ 
    116122  3.0 - Actions 
    117123------------------------------------------------------------------------------*/ 
     
    23092315        float: left; 
    23102316} 
    23112317 
    2312 #template textarea { 
    2313         direction: ltr; 
    2314 } 
    2315  
    23162318/* theme-install */ 
    23172319div.star { 
    23182320        left:auto; 
  • wp-admin/options-writing.php

     
    145145</tr> 
    146146<tr valign="top"> 
    147147<th scope="row"><label for="mailserver_login"><?php _e('Login Name') ?></label></th> 
    148 <td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text" /></td> 
     148<td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text code" /></td> 
    149149</tr> 
    150150<tr valign="top"> 
    151151<th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th> 
    152152<td> 
    153 <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text" /> 
     153<input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text code" /> 
    154154</td> 
    155155</tr> 
    156156<tr valign="top"> 
  • wp-admin/plugin-editor.php

     
    225225</div> 
    226226<form name="template" id="template" action="plugin-editor.php" method="post"> 
    227227        <?php wp_nonce_field('edit-plugin_' . $file) ?> 
    228                 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea> 
     228                <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" class="code" tabindex="1"><?php echo $content ?></textarea> 
    229229                <input type="hidden" name="action" value="update" /> 
    230230                <input type="hidden" name="file" value="<?php echo esc_attr($file) ?>" /> 
    231231                <input type="hidden" name="plugin" value="<?php echo esc_attr($plugin) ?>" />