Make WordPress Core

Ticket #45123: 45123.1.patch

File 45123.1.patch, 1.3 KB (added by mcsf, 7 years ago)
  • src/wp-admin/includes/upgrade.php

    diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php
    index 71c90e16de..3d49cbc96c 100644
    a b function upgrade_all() { 
    614614        if ( $wp_current_db_version < 37965 )
    615615                upgrade_460();
    616616
     617        if ( $wp_current_db_version < 43754 )
     618                upgrade_500();
     619
    617620        maybe_disable_link_manager();
    618621
    619622        maybe_disable_automattic_widgets();
    function upgrade_460() { 
    17811784        }
    17821785}
    17831786
     1787/**
     1788 * Executes changes made in WordPress 5.0.0.
     1789 *
     1790 * @ignore
     1791 * @since 5.0.0
     1792 *
     1793 * @global int $wp_current_db_version Current database version.
     1794 */
     1795function upgrade_500() {
     1796        global $wp_current_db_version;
     1797        if ( $wp_current_db_version < 43754 ) {
     1798                // Allow bypassing Gutenberg plugin deactivation.
     1799                if ( defined( 'GUTENBERG_USE_PLUGIN' ) && GUTENBERG_USE_PLUGIN ) {
     1800                        return;
     1801                }
     1802                deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true );
     1803        }
     1804}
     1805
    17841806/**
    17851807 * Executes network-level upgrade routines.
    17861808 *
  • src/wp-includes/version.php

    diff --git a/src/wp-includes/version.php b/src/wp-includes/version.php
    index 7063fbf7f9..8167718f1e 100644
    a b $wp_version = '5.0-alpha-43676-src'; 
    1111 *
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 38590;
     14$wp_db_version = 43754;
    1515
    1616/**
    1717 * Holds the TinyMCE version