WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #53569, comment 4


Ignore:
Timestamp:
07/07/2021 01:29:26 AM (3 months ago)
Author:
dlh
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53569, comment 4

    initial v1  
    11> `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`).
    22
    3 Enqueuing `wp-edit-post` would be one thing, but, in this case, the offending block in this case only declared it as a dependency so as to define the load order of stylesheets in the editor.
     3Enqueuing `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.
    44
    55True, 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.