Problem
In wp-admin/includes/admin-filters.php at line 88, add_action() is used to register a callback on the use_block_editor_for_post_type hook, but this hook is fired with apply_filters() — making it a filter, not an action.
add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
Where the hook fires
src/wp-includes/post.php:8646 — apply_filters( 'use_block_editor_for_post_type', ... )
The PHPDoc at line 8643 clearly documents this as a filter with @param tags for return value filtering.
Fix
Change add_action() to add_filter().
Related to https://core.trac.wordpress.org/ticket/64224
Problem
In
wp-admin/includes/admin-filters.phpat line 88,add_action()is used to register a callback on theuse_block_editor_for_post_typehook, but this hook is fired withapply_filters()— making it a filter, not an action.Where the hook fires
src/wp-includes/post.php:8646—apply_filters( 'use_block_editor_for_post_type', ... )The PHPDoc at line 8643 clearly documents this as a filter with
@paramtags for return value filtering.Fix
Change
add_action()toadd_filter().Related to https://core.trac.wordpress.org/ticket/64224