Changes between Initial Version and Version 1 of Ticket #53569, comment 4
- Timestamp:
- 07/07/2021 01:29:26 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #53569, comment 4
initial v1 1 1 > `wp-edit-post` (`@wordpress/edit-post`) is the package containing scripts and styles that implement the post block editor (`edit.php`). It shouldn't be enqueued in the widgets block editor (`widgets.php`). 2 2 3 Enqueuing `wp-edit-post` would be one thing, but, in this case, the offending block in this caseonly declared it as a dependency so as to define the load order of stylesheets in the editor.3 Enqueuing `wp-edit-post` would be one thing, but, in this case, the offending block only declared it as a dependency so as to define the load order of stylesheets in the editor. 4 4 5 5 True, under the hood, declaring it as a dependency amounts to the same thing as enqueuing it. Until now, it has been harmless to do so, and if there's documentation from previous releases advising against it, then I just missed it.