Skip to content

Commit a24a6bf

Browse files
committed
Fix meta query
1 parent 6789f7a commit a24a6bf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/compat/wordpress-6.9/template-activate.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,15 @@ function gutenberg_migrate_existing_templates() {
484484
),
485485
// Only get templates that are not inactive by default.
486486
'meta_query' => array(
487+
'relation' => 'OR',
487488
array(
488489
'key' => 'is_inactive_by_default',
489-
'value' => true,
490-
'compare' => '!=',
490+
'compare' => 'NOT EXISTS',
491+
),
492+
array(
493+
'key' => 'is_inactive_by_default',
494+
'value' => false,
495+
'compare' => '=',
491496
),
492497
),
493498
);

0 commit comments

Comments
 (0)