WordPress.org

Make WordPress Core

Ticket #13310: 13310-430.patch

File 13310-430.patch, 916 bytes (added by khromov, 5 years ago)
  • 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),
  • 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();
    14891493        }
    14901494}
    14911495