[wp-trac] [WordPress Trac] #45396: Import from JSON button is missing on Manage All Reusable Blocks page

WordPress Trac noreply at wordpress.org
Fri Nov 23 07:52:09 UTC 2018


#45396: Import from JSON button is missing on Manage All Reusable Blocks page
----------------------------------------+-------------------------
 Reporter:  noisysocks                  |       Owner:  noisysocks
     Type:  defect (bug)                |      Status:  reopened
 Priority:  normal                      |   Milestone:  5.0
Component:  Editor                      |     Version:  5.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch commit fixed-5.0  |     Focuses:
----------------------------------------+-------------------------

Comment (by swissspidy):

 The problem with that approach is that for everyone who adds `wp-list-
 reusable-blocks` as a dependency or directly calls `wp_enqueue_script(
 'wp-list-reusable-blocks' )` the script would still load in the header.

 That's why this (`$script->add_data( 'wp-list-reusable-blocks', 'group', 1
 );` should be added directly to the `wp_default_packages_scripts`
 function.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45396#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list