Skip to content

Commit d89ccf8

Browse files
committed
fix(hooks): use add_filter for block editor filter
Change add_action() to add_filter() for the use_block_editor_for_post_type hook which is fired via apply_filters(). Related to https://core.trac.wordpress.org/ticket/64828
1 parent 9867f2a commit d89ccf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/includes/admin-filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );
8787

88-
add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
88+
add_filter( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
8989
add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );
9090
add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );
9191

0 commit comments

Comments
 (0)