WordPress.org

Make WordPress Core

Ticket #21656: 21656.patch

File 21656.patch, 3.7 KB (added by jblz, 7 years ago)
  • wp-admin/network.php

     
    366366                                        echo ' <strong>' . __('Warning:') . ' ' . __( 'Networks may not be fully compatible with custom wp-content directories.' ) . '</strong>';
    367367                        ?></p></li>
    368368                        <li><p><?php printf( __( 'Add the following to your <code>wp-config.php</code> file in <code>%s</code> <strong>above</strong> the line reading <code>/* That&#8217;s all, stop editing! Happy blogging. */</code>:' ), ABSPATH ); ?></p>
    369                                 <textarea class="code" readonly="readonly" cols="100" rows="7">
     369                                <textarea class="code" readonly="readonly" cols="100" rows="7" onfocus="javascript:this.select();" onmouseup="javascript:return false;" onkeyup="javascript:if( event.keyCode == 9 || event.which == 9 ) this.select();">
    370370define('MULTISITE', true);
    371371define('SUBDOMAIN_INSTALL', <?php echo $subdomain_install ? 'true' : 'false'; ?>);
    372372$base = '<?php echo $base; ?>';
     
    397397?>
    398398        <p><?php
    399399                echo _n( 'This unique authentication key is also missing from your <code>wp-config.php</code> file.', 'These unique authentication keys are also missing from your <code>wp-config.php</code> file.', $num_keys_salts ); ?> <?php _e( 'To make your installation more secure, you should also add:' ) ?></p>
    400         <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $num_keys_salts; ?>"><?php echo esc_textarea( $keys_salts_str ); ?></textarea>
     400        <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $num_keys_salts; ?>" onfocus="javascript:this.select();" onmouseup="javascript:return false;" onkeyup="javascript:if( event.keyCode == 9 || event.which == 9 ) this.select();"><?php echo esc_textarea( $keys_salts_str ); ?></textarea>
    401401<?php
    402402        }
    403403?>
     
    482482                        }
    483483        ?>
    484484                <li><p><?php printf( __( 'Add the following to your <code>web.config</code> file in <code>%s</code>, replacing other WordPress rules:' ), ABSPATH ); ?></p>
    485                 <textarea class="code" readonly="readonly" cols="100" rows="20">
     485                <textarea class="code" readonly="readonly" cols="100" rows="20" onfocus="javascript:this.select();" onmouseup="javascript:return false;" onkeyup="javascript:if( event.keyCode == 9 || event.which == 9 ) this.select();">
    486486                <?php echo esc_textarea( $web_config_file ); ?>
    487487                </textarea></li>
    488488                </ol>
     
    511511
    512512                ?>
    513513                <li><p><?php printf( __( 'Add the following to your <code>.htaccess</code> file in <code>%s</code>, replacing other WordPress rules:' ), ABSPATH ); ?></p>
    514                 <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $subdomain_install ? 11 : 16; ?>">
     514                <textarea class="code" readonly="readonly" cols="100" rows="<?php echo $subdomain_install ? 11 : 16; ?>" onfocus="javascript:this.select();" onmouseup="javascript:return false;" onkeyup="javascript:if( event.keyCode == 9 || event.which == 9 ) this.select();">
    515515<?php echo esc_textarea( $htaccess_file ); ?></textarea></li>
    516516                </ol>
    517517
  • wp-admin/setup-config.php

     
    255255?>
    256256<p><?php _e( "Sorry, but I can't write the <code>wp-config.php</code> file." ); ?></p>
    257257<p><?php _e( 'You can create the <code>wp-config.php</code> manually and paste the following text into it.' ); ?></p>
    258 <textarea cols="98" rows="15" class="code"><?php
     258<textarea cols="98" rows="15" class="code" onfocus="javascript:this.select();" onmouseup="javascript:return false;" onkeyup="javascript:if( event.keyCode == 9 || event.which == 9 ) this.select();"><?php
    259259                foreach( $config_file as $line ) {
    260260                        echo htmlentities($line, ENT_COMPAT, 'UTF-8');
    261261                }