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
This commit is contained in:
Colin Stewart 2023-09-19 12:36:44 +00:00
parent 8e8de91f0a
commit 3916624c13

View File

@ -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(