#59475 closed defect (bug) (fixed)
6.4 beta 1: Function WP_Scripts::add_data was called incorrectly.
Reported by: | kebbet | Owned by: | spacedmonkey |
---|---|---|---|
Milestone: | 6.4 | Priority: | normal |
Severity: | normal | Version: | 6.4 |
Component: | Editor | Keywords: | has-patch |
Focuses: | Cc: |
Description
Just updated to 6.4 beta 1, and got this warning with Query Monitor under the section ”Doing it wrong”, on both frontend and backend:
Function WP_Scripts::add_data was called incorrectly. Cannot supply a strategy `defer` for script `wp-block-image-view` because it is an alias (it lacks a `src` value). (This message was added in version 6.3.0.)
Call stack
WP_Scripts->add_data() wp-includes/class-wp-scripts.php:819 wp_register_script() wp-includes/functions.wp-scripts.php:194 register_block_script_handle() wp-includes/blocks.php:191 register_block_type_from_metadata() wp-includes/blocks.php:458 register_block_core_image() wp-includes/blocks/image.php:311 do_action('init') wp-includes/plugin.php:517
Change History (7)
#2
@
12 months ago
Related Slack discussion: https://wordpress.slack.com/archives/C02RQBWTW/p1695745900743789
See [56683] and https://github.com/WordPress/wordpress-develop/pull/5320
cc @westonruter @spacedmonkey
This ticket was mentioned in PR #5320 on WordPress/wordpress-develop by @spacedmonkey.
12 months ago
#3
- Keywords has-patch added; needs-patch removed
Trac ticket: https://core.trac.wordpress.org/ticket/59475
#5
@
12 months ago
- Keywords needs-testing removed
- Owner set to spacedmonkey
- Status changed from new to assigned
@kebbet Could you please review the PR as its working for me.
@spacedmonkey commented on PR #5320:
12 months ago
#7
Note: See
TracTickets for help on using
tickets.
Thanks @kebbet you beats on the reporting the issue.