Skip to content

[Navigation] enqueue_block_editor_assets action is not fired #21648

@manmotive

Description

@manmotive

Describe the bug
I am attempting to follow this guide to add a button to the menu item toolbar:

https://developer.wordpress.org/block-editor/tutorials/format-api/1-register-format/

It appears that the "enqueue_block_editor_assets" action is not fired on the /wp-admin/admin.php?page=gutenberg-navigation page.

To reproduce

  1. Add the following to a plugin or your theme:
function my_custom_format_enqueue_assets_editor() {
    die("got here");
}
add_action( 'enqueue_block_editor_assets', 'my_custom_format_enqueue_assets_editor' );
  1. Visit /wp-admin/admin.php?page=gutenberg-navigation

Expected behavior
I would expect to see the message "got here", but I do not as the action is not fired on the new Navigation page. If I edit a page or post I see the "got here" message.

Editor version:

  • WordPress version: 5.4
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? Gutenberg plugin
  • If the Gutenberg plugin is installed, which version is it? 7.9

Metadata

Metadata

Assignees

Labels

[Feature] ExtensibilityThe ability to extend blocks or the editing experience[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions