[wp-trac] [WordPress Trac] #53397: Update the WordPress Packages with the Gutenberg fixes during the 5.8 beta/RC lifecycle

WordPress Trac noreply at wordpress.org
Wed Jun 30 01:45:25 UTC 2021


#53397: Update the WordPress Packages with the Gutenberg fixes during the 5.8
beta/RC lifecycle
--------------------------------------+-----------------------
 Reporter:  youknowriad               |       Owner:  (none)
     Type:  task (blessed)            |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.8
Component:  Editor                    |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------

Comment (by desrosj):

 In [changeset:"51267" 51267]:
 {{{
 #!CommitTicketReference repository="" revision="51267"
 Script Loader: Fix PHP notice caused by the `viewScript` for the
 `core/file` block.

 This fixes a PHP notice caused by the `viewScript` for the `core/file`
 block having `.min.js` instead of just `.js`.

 `register_block_script_handle()` was incorrectly looking for
 `view.min.asset.php`, which does not exist, and caused the
 `_doing_it_wrong()` notice.

 This adds a check for `.min.js` in the `viewScript` field of `block.json`
 and corrects it to `.js` in order to match the expected pattern of
 `view.asset.php` until a more permanent fix can be created.

 Follow up to [51259].

 Props ipstenu, pbiron, peterwilsoncc.
 See #53397.
 }}}

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


More information about the wp-trac mailing list