From dd3e5945b45ff775b3114b3925ad12d0bdc69e87 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Wed, 21 Apr 2021 18:09:28 -0400 Subject: [PATCH] Fix test by changing hook --- lib/block-patterns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/block-patterns.php b/lib/block-patterns.php index 32b96933d554e..7964d345ce09c 100644 --- a/lib/block-patterns.php +++ b/lib/block-patterns.php @@ -186,7 +186,7 @@ // Deactivate the legacy patterns bundled with WordPress, and add new block patterns for testing. // More details in the trac issue (https://core.trac.wordpress.org/ticket/52846). add_action( - 'init', + 'admin_init', function() { $core_block_patterns = array( 'text-two-columns',