From 3916624c139759e0a572d64eb449111f0259771b Mon Sep 17 00:00:00 2001 From: Colin Stewart Date: Tue, 19 Sep 2023 12:36:44 +0000 Subject: [PATCH] Editor: Fix parameter reference in block editor settings tests. In [50776], the `filter_set_block_editor_settings_post()` callback was introduced for use in block editor settings tests. This contained a reference to an `$allowed_block_types` parameter, which doesn't exist. This changes the reference to `$editor_settings`. Follow-up to [50776]. Props david.binda, mukesh27, SergeyBiryukov. Fixes #59391. git-svn-id: https://develop.svn.wordpress.org/trunk@56619 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/blocks/editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/blocks/editor.php b/tests/phpunit/tests/blocks/editor.php index 13dbf59556..ee5458e06e 100644 --- a/tests/phpunit/tests/blocks/editor.php +++ b/tests/phpunit/tests/blocks/editor.php @@ -65,7 +65,7 @@ class Tests_Blocks_Editor extends WP_UnitTestCase { public function filter_set_block_editor_settings_post( $editor_settings, $post ) { if ( empty( $post ) ) { - return $allowed_block_types; + return $editor_settings; } return array(