Make WordPress Core

Changeset 60716


Ignore:
Timestamp:
09/07/2025 08:32:37 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Move upgrade_690() to the correct place, after upgrade_682().

Follow-up to [60666].

See #53323.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r60666 r60716  
    24182418
    24192419/**
    2420  * Executes changes made in WordPress 6.9.0.
    2421  *
    2422  * @ignore
    2423  * @since 6.9.0
    2424  *
    2425  * @global int $wp_current_db_version The old (current) database version.
    2426  */
    2427 function upgrade_690() {
    2428     global $wp_current_db_version;
    2429 
    2430     // Switch Hello Dolly from file to directory format. See #53323
    2431     $active_plugins = get_option( 'active_plugins' );
    2432     $old_plugin     = 'hello.php';
    2433     $new_plugin     = 'hello-dolly/hello.php';
    2434     $key            = array_search( $old_plugin, $active_plugins, true );
    2435 
    2436     if ( $key ) {
    2437         $active_plugins[ $key ] = $new_plugin;
    2438         update_option( 'active_plugins', $active_plugins );
    2439     }
    2440 }
    2441 /**
    24422420 * Executes changes made in WordPress 6.7.0.
    24432421 *
     
    25022480        $ping_sites_value = implode( "\n", $ping_sites_value );
    25032481        update_option( 'ping_sites', $ping_sites_value );
     2482    }
     2483}
     2484
     2485/**
     2486 * Executes changes made in WordPress 6.9.0.
     2487 *
     2488 * @ignore
     2489 * @since 6.9.0
     2490 *
     2491 * @global int $wp_current_db_version The old (current) database version.
     2492 */
     2493function upgrade_690() {
     2494    global $wp_current_db_version, $wpdb;
     2495
     2496    // Switch Hello Dolly from file to directory format. See #53323
     2497    $active_plugins = get_option( 'active_plugins' );
     2498    $old_plugin     = 'hello.php';
     2499    $new_plugin     = 'hello-dolly/hello.php';
     2500    $key            = array_search( $old_plugin, $active_plugins, true );
     2501
     2502    if ( $key ) {
     2503        $active_plugins[ $key ] = $new_plugin;
     2504        update_option( 'active_plugins', $active_plugins );
    25042505    }
    25052506}
Note: See TracChangeset for help on using the changeset viewer.