Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -625,10 +625,9 @@ if ( ! function_exists( 'wp_upgrade' ) ) :
|
||||
*
|
||||
* @global int $wp_current_db_version The old (current) database version.
|
||||
* @global int $wp_db_version The new database version.
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*/
|
||||
function wp_upgrade() {
|
||||
global $wp_current_db_version, $wp_db_version, $wpdb;
|
||||
global $wp_current_db_version, $wp_db_version;
|
||||
|
||||
$wp_current_db_version = __get_option( 'db_version' );
|
||||
|
||||
@@ -840,6 +839,10 @@ function upgrade_all() {
|
||||
upgrade_630();
|
||||
}
|
||||
|
||||
if ( $wp_current_db_version < 56657 ) {
|
||||
upgrade_640();
|
||||
}
|
||||
|
||||
maybe_disable_link_manager();
|
||||
|
||||
maybe_disable_automattic_widgets();
|
||||
@@ -996,7 +999,6 @@ function upgrade_110() {
|
||||
$wpdb->query( "UPDATE $wpdb->comments SET comment_date_gmt = DATE_ADD(comment_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)" );
|
||||
$wpdb->query( "UPDATE $wpdb->users SET user_registered = DATE_ADD(user_registered, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)" );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1294,7 +1296,7 @@ function upgrade_230() {
|
||||
$num = 2;
|
||||
do {
|
||||
$alt_slug = $slug . "-$num";
|
||||
$num++;
|
||||
++$num;
|
||||
$slug_check = $wpdb->get_var( $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s", $alt_slug ) );
|
||||
} while ( $slug_check );
|
||||
|
||||
@@ -1546,7 +1548,6 @@ function upgrade_250() {
|
||||
if ( $wp_current_db_version < 6689 ) {
|
||||
populate_roles_250();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1705,7 +1706,6 @@ function upgrade_300() {
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2326,6 +2326,29 @@ function upgrade_630() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes changes made in WordPress 6.4.0.
|
||||
*
|
||||
* @ignore
|
||||
* @since 6.4.0
|
||||
*
|
||||
* @global int $wp_current_db_version The old (current) database version.
|
||||
*/
|
||||
function upgrade_640() {
|
||||
global $wp_current_db_version;
|
||||
|
||||
if ( $wp_current_db_version < 56657 ) {
|
||||
// Enable attachment pages.
|
||||
update_option( 'wp_attachment_pages_enabled', 1 );
|
||||
|
||||
// Remove the wp_https_detection cron. Https status is checked directly in an async Site Health check.
|
||||
$scheduled = wp_get_scheduled_event( 'wp_https_detection' );
|
||||
if ( $scheduled ) {
|
||||
wp_clear_scheduled_hook( 'wp_https_detection' );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes network-level upgrade routines.
|
||||
*
|
||||
@@ -2485,7 +2508,7 @@ function upgrade_network() {
|
||||
/**
|
||||
* Creates a table in the database, if it doesn't already exist.
|
||||
*
|
||||
* This method checks for an existing database and creates a new one if it's not
|
||||
* This method checks for an existing database table and creates a new one if it's not
|
||||
* already present. It doesn't rely on MySQL's "IF NOT EXISTS" statement, but chooses
|
||||
* to query all tables first and then run the SQL statement creating the table.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user