mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
8e8de91f0a
commit
3916624c13
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user