WordPress.org

Make WordPress Core

Ticket #13310: 13310-440.diff

File 13310-440.diff, 2.1 KB (added by netweb, 5 years ago)
  • src/wp-admin/includes/schema.php

     
    135135) $charset_collate;
    136136CREATE TABLE $wpdb->options (
    137137  option_id bigint(20) unsigned NOT NULL auto_increment,
    138   option_name varchar(64) NOT NULL default '',
     138  option_name varchar(255) NOT NULL default '',
    139139  option_value longtext NOT NULL,
    140140  autoload varchar(20) NOT NULL default 'yes',
    141141  PRIMARY KEY  (option_id),
    142   UNIQUE KEY option_name (option_name)
     142  UNIQUE KEY option_name (option_name($max_index_length))
    143143) $charset_collate;
    144144CREATE TABLE $wpdb->postmeta (
    145145  meta_id bigint(20) unsigned NOT NULL auto_increment,
  • src/wp-admin/includes/upgrade.php

     
    538538        if ( $wp_current_db_version < 33056 )
    539539                upgrade_431();
    540540
     541        if ( $wp_current_db_version < 33726 )
     542                upgrade_440();
     543
    541544        maybe_disable_link_manager();
    542545
    543546        maybe_disable_automattic_widgets();
     
    15991602}
    16001603
    16011604/**
     1605 * Executes changes made in WordPress 4.4.0.
     1606 *
     1607 * @since 4.4.0
     1608 *
     1609 * @global int  $wp_current_db_version Current version.
     1610 * @global wpdb $wpdb                  WordPress database abstraction object.
     1611 */
     1612function upgrade_440() {
     1613        global $wp_current_db_version, $wpdb;
     1614
     1615        if ( $wp_current_db_version < 33726 ) {
     1616
     1617                $wpdb->hide_errors();
     1618                $wpdb->query( "ALTER TABLE {$wpdb->options} MODIFY option_name VARCHAR(255)" );
     1619                $wpdb->show_errors();
     1620        }
     1621}
     1622
     1623/**
    16021624 * Executes network-level upgrade routines.
    16031625 *
    16041626 * @since 3.0.0
  • src/wp-includes/version.php

     
    1111 *
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 33056;
     14$wp_db_version = 33726;
    1515
    1616/**
    1717 * Holds the TinyMCE version