Make WordPress Core

Ticket #47512: #47512.diff

File #47512.diff, 1.0 KB (added by jweston, 6 years ago)
  • src/wp-admin/setup-config.php

    From 5e4491dfd9d1a394a194975fec411c0fd724f61c Mon Sep 17 00:00:00 2001
    From: Jacob Weston <jake@webfor.com>
    Date: Sat, 8 Jun 2019 20:06:12 -0700
    Subject: [PATCH] Added default wp unique prefix
    
    ---
     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 cab6ab8101..5797dd7904 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="wp_" size="25" /></td>
     238                        <td><input name="prefix" id="prefix" type="text" aria-describedby="prefix-desc" value="<?php echo 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>