Upgrade/Install: Add missing call to clear site meta cache in populate_site_meta()
.
See #44896. git-svn-id: https://develop.svn.wordpress.org/trunk@44526 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ffd2a4bd16
commit
d50afa97a3
@ -1329,5 +1329,6 @@ function populate_site_meta( $site_id, array $meta = array() ) {
|
|||||||
|
|
||||||
$wpdb->query( "INSERT INTO $wpdb->blogmeta ( blog_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
|
$wpdb->query( "INSERT INTO $wpdb->blogmeta ( blog_id, meta_key, meta_value ) VALUES " . $insert ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
|
||||||
|
|
||||||
|
wp_cache_delete( $site_id, 'blog_meta' );
|
||||||
wp_cache_set_sites_last_changed();
|
wp_cache_set_sites_last_changed();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user