WordPress.org

Make WordPress Core

Ticket #13310: 13310-430.diff

File 13310-430.diff, 999 bytes (added by MikeHansenMe, 5 years ago)

Updated for 4.3

  • src/wp-admin/includes/schema.php

     
    130130) $charset_collate;
    131131CREATE TABLE $wpdb->options (
    132132  option_id bigint(20) unsigned NOT NULL auto_increment,
    133   option_name varchar(64) NOT NULL default '',
     133  option_name varchar(255) NOT NULL default '',
    134134  option_value longtext NOT NULL,
    135135  autoload varchar(20) NOT NULL default 'yes',
    136136  PRIMARY KEY  (option_id),
  • src/wp-admin/includes/upgrade.php

     
    14871487                        wp_delete_comment( $comment->comment_ID, true );
    14881488                }
    14891489        }
     1490
     1491        $wpdb->hide_errors();
     1492        $wpdb->query( "ALTER TABLE {$wpdb->options} MODIFY option_name VARCHAR(255)" );
     1493        $wpdb->show_errors();
     1494
    14901495}
    14911496
    14921497/**