WordPress.org

Make WordPress Core

Ticket #47512: #47512.2.diff

File #47512.2.diff, 1.1 KB (added by jweston, 21 months ago)

Made modification more in line with WP coding standards

  • src/wp-admin/setup-config.php

    From a99691ecf6648da85ad20cec0c87efe46cfb2392 Mon Sep 17 00:00:00 2001
    From: Jacob Weston <jweston491@gmail.com>
    Date: Sun, 9 Jun 2019 13:32:15 -0700
    Subject: [PATCH] Made change more in line with WP coding standards
    
    ---
     src/wp-admin/setup-config.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php
    index 5797dd7904..565578d109 100644
    a b switch ( $step ) { 
    235235                </tr>
    236236                <tr>
    237237                        <th scope="row"><label for="prefix"><?php _e( 'Table Prefix' ); ?></label></th>
    238                         <td><input name="prefix" id="prefix" type="text" aria-describedby="prefix-desc" value="<?php echo substr(uniqid('wp_'), 0, 15 )?>_" size="25" /></td>
     238                        <td><input name="prefix" id="prefix" type="text" aria-describedby="prefix-desc" value="<?php echo esc_attr( substr( uniqid( 'wp_' ), 0, 15 ) ); ?>_" size="25" /></td>
    239239                        <td id="prefix-desc"><?php _e( 'If you want to run multiple WordPress installations in a single database, change this.' ); ?></td>
    240240                </tr>
    241241        </table>