Skip to content

Commit 13c40c8

Browse files
committed
don't run migration during instal
1 parent 20415f4 commit 13c40c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wp-includes/block-template-utils.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,6 +1882,11 @@ function wp_maybe_activate_template( $post_id ) {
18821882
}
18831883

18841884
function _wp_migrate_active_templates() {
1885+
// Do not run during installation when the database is not yet available.
1886+
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) {
1887+
return;
1888+
}
1889+
18851890
$active_templates = get_option( 'active_templates', false );
18861891

18871892
if ( false !== $active_templates ) {

0 commit comments

Comments
 (0)