[wp-trac] [WordPress Trac] #59475: 6.4 beta 1: Function WP_Scripts::add_data was called incorrectly.

WordPress Trac noreply at wordpress.org
Wed Sep 27 06:39:52 UTC 2023


#59475: 6.4 beta 1: Function WP_Scripts::add_data was called incorrectly.
--------------------------+-----------------------------
 Reporter:  kebbet        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 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
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59475>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list