Make WordPress Core

Ticket #33904: 33904.patch

File 33904.patch, 1.6 KB (added by grvrulz, 9 years ago)

Change default length of user_pass and user_activation_key to 255 in schema

  • wp-admin/includes/schema.php

     
    194194        $users_single_table = "CREATE TABLE $wpdb->users (
    195195  ID bigint(20) unsigned NOT NULL auto_increment,
    196196  user_login varchar(60) NOT NULL default '',
    197   user_pass varchar(64) NOT NULL default '',
     197  user_pass varchar(255) NOT NULL default '',
    198198  user_nicename varchar(50) NOT NULL default '',
    199199  user_email varchar(100) NOT NULL default '',
    200200  user_url varchar(100) NOT NULL default '',
    201201  user_registered datetime NOT NULL default '0000-00-00 00:00:00',
    202   user_activation_key varchar(60) NOT NULL default '',
     202  user_activation_key varchar(255) NOT NULL default '',
    203203  user_status int(11) NOT NULL default '0',
    204204  display_name varchar(250) NOT NULL default '',
    205205  PRIMARY KEY  (ID),
     
    211211        $users_multi_table = "CREATE TABLE $wpdb->users (
    212212  ID bigint(20) unsigned NOT NULL auto_increment,
    213213  user_login varchar(60) NOT NULL default '',
    214   user_pass varchar(64) NOT NULL default '',
     214  user_pass varchar(255) NOT NULL default '',
    215215  user_nicename varchar(50) NOT NULL default '',
    216216  user_email varchar(100) NOT NULL default '',
    217217  user_url varchar(100) NOT NULL default '',
    218218  user_registered datetime NOT NULL default '0000-00-00 00:00:00',
    219   user_activation_key varchar(60) NOT NULL default '',
     219  user_activation_key varchar(255) NOT NULL default '',
    220220  user_status int(11) NOT NULL default '0',
    221221  display_name varchar(250) NOT NULL default '',
    222222  spam tinyint(2) NOT NULL default '0',