WordPress.org

Make WordPress Core

Ticket #13310: 13310-430.2.diff

File 13310-430.2.diff, 1.0 KB (added by MikeHansenMe, 5 years ago)

inside the conditional

  • 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

     
    14861486                foreach ( $comments as $comment ) {
    14871487                        wp_delete_comment( $comment->comment_ID, true );
    14881488                }
     1489
     1490                $wpdb->hide_errors();
     1491                $wpdb->query( "ALTER TABLE {$wpdb->options} MODIFY option_name VARCHAR(255)" );
     1492                $wpdb->show_errors();
     1493
    14891494        }
     1495
    14901496}
    14911497
    14921498/**