Make WordPress Core

Changeset 56619

Timestamp:
09/19/2023 12:36:44 PM (11 months ago)
Author:
costdev
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/editor.php

    r56559 r56619  
    6666    public function filter_set_block_editor_settings_post( $editor_settings, $post ) {
    6767        if ( empty( $post ) ) {
    68             return $allowed_block_types;
     68            return $s;
    6969        }
    7070
Note: See TracChangeset for help on using the changeset viewer.