WordPress.org

Make WordPress Core

Changeset 47787


Ignore:
Timestamp:
05/12/2020 08:57:48 PM (10 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Correct db_version check in wp-admin/admin.php.

Follow-up to [47785].

See #49239.

File:
1 edited

Legend:

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

    r47785 r47787  
    3737
    3838if ( get_option( 'db_upgraded' ) ) {
     39
    3940    flush_rewrite_rules();
    4041    update_option( 'db_upgraded', false );
     
    4647     */
    4748    do_action( 'after_db_upgrade' );
    48 } elseif ( get_option( 'db_version' ) !== $wp_db_version && empty( $_POST ) ) {
     49
     50} elseif ( (int) get_option( 'db_version' ) !== $wp_db_version && empty( $_POST ) ) {
     51
    4952    if ( ! is_multisite() ) {
    5053        wp_redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );
Note: See TracChangeset for help on using the changeset viewer.