WordPress.org

Make WordPress Core

Ticket #22626: 22626.patch

File 22626.patch, 1.1 KB (added by SergeyBiryukov, 17 months ago)
  • wp-admin/includes/upgrade.php

     
    11891189function upgrade_350() { 
    11901190        global $wp_current_db_version, $wpdb; 
    11911191 
    1192         if ( $wp_current_db_version < 21501 && $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) ) 
     1192        if ( $wp_current_db_version < 22006 && $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) ) 
    11931193                update_option( 'link_manager_enabled', 1 ); // Previously set to 0 by populate_options() 
    11941194 
    11951195        if ( $wp_current_db_version < 21811 && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) { 
     
    19481948function maybe_disable_link_manager() { 
    19491949        global $wp_current_db_version, $wpdb; 
    19501950 
    1951         if ( $wp_current_db_version >= 21501 && get_option( 'link_manager_enabled' ) && ! $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) ) 
     1951        if ( $wp_current_db_version >= 22006 && get_option( 'link_manager_enabled' ) && ! $wpdb->get_var( "SELECT link_id FROM $wpdb->links LIMIT 1" ) ) 
    19521952                update_option( 'link_manager_enabled', 0 ); 
    19531953} 
    19541954