#59475 closed defect (bug) (fixed)
6.4 beta 1: Function WP_Scripts::add_data was called incorrectly.
| Reported by: | kebbet | Owned by: | spacedmonkey |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.4 |
| Component: | Editor | Version: | 6.4 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
3 years 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.
3 years ago
#3
- Keywords has-patch added; needs-patch removed
Trac ticket: https://core.trac.wordpress.org/ticket/59475
#5
@
3 years ago
- Keywords needs-testing removed
- Owner set to
- Status new → assigned
@kebbet Could you please review the PR as its working for me.
@spacedmonkey commented on PR #5320:
3 years ago
#7
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks @kebbet you beats on the reporting the issue.