WordPress.org

Make WordPress Core

Ticket #41685: 41865-2.patch

File 41865-2.patch, 620 bytes (added by leogermani, 8 months ago)

refreshed patch

  • src/wp-admin/includes/upgrade.php

    diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php
    index 0390110..3e1b9d7 100644
    a b if ( ! function_exists( 'wp_upgrade' ) ) : 
    656656                        } else {
    657657                                $wpdb->query( $wpdb->prepare( "INSERT INTO {$wpdb->blog_versions} ( `blog_id` , `db_version` , `last_updated` ) VALUES ( %d, %d, NOW() );", $site_id, $wp_db_version ) );
    658658                        }
     659                        update_site_meta( get_current_blog_id(), 'db_version', $wp_db_version );
     660                        update_site_meta( get_current_blog_id(), 'db_last_updated', microtime() );
    659661                }
    660662
    661663                /**