@@ -6239,3 +6239,60 @@ function the_block_template_skip_link() {
62396239 </script>
62406240 <?php
62416241}
6242+
6243+ /**
6244+ * Ensure that the view script has the `wp-interactivity` dependency.
6245+ *
6246+ * @since 6.4.0
6247+ * @deprecated 6.5.0
6248+ *
6249+ * @global WP_Scripts $wp_scripts
6250+ */
6251+ function block_core_query_ensure_interactivity_dependency () {
6252+ _deprecated_function ( __FUNCTION__ , '6.5.0 ' , 'Used wp_register_script_module instead ' );
6253+ global $ wp_scripts ;
6254+ if (
6255+ isset ( $ wp_scripts ->registered ['wp-block-query-view ' ] ) &&
6256+ ! in_array ( 'wp-interactivity ' , $ wp_scripts ->registered ['wp-block-query-view ' ]->deps , true )
6257+ ) {
6258+ $ wp_scripts ->registered ['wp-block-query-view ' ]->deps [] = 'wp-interactivity ' ;
6259+ }
6260+ }
6261+
6262+ /**
6263+ * Ensure that the view script has the `wp-interactivity` dependency.
6264+ *
6265+ * @since 6.4.0
6266+ * @deprecated 6.5.0
6267+ *
6268+ * @global WP_Scripts $wp_scripts
6269+ */
6270+ function block_core_file_ensure_interactivity_dependency () {
6271+ _deprecated_function ( __FUNCTION__ , '6.5.0 ' , 'Used wp_register_script_module instead ' );
6272+ global $ wp_scripts ;
6273+ if (
6274+ isset ( $ wp_scripts ->registered ['wp-block-file-view ' ] ) &&
6275+ ! in_array ( 'wp-interactivity ' , $ wp_scripts ->registered ['wp-block-file-view ' ]->deps , true )
6276+ ) {
6277+ $ wp_scripts ->registered ['wp-block-file-view ' ]->deps [] = 'wp-interactivity ' ;
6278+ }
6279+ }
6280+
6281+ /**
6282+ * Ensures that the view script has the `wp-interactivity` dependency.
6283+ *
6284+ * @since 6.4.0
6285+ * @deprecated 6.5.0
6286+ *
6287+ * @global WP_Scripts $wp_scripts
6288+ */
6289+ function block_core_image_ensure_interactivity_dependency () {
6290+ _deprecated_function ( __FUNCTION__ , '6.5.0 ' , 'Used wp_register_script_module instead ' );
6291+ global $ wp_scripts ;
6292+ if (
6293+ isset ( $ wp_scripts ->registered ['wp-block-image-view ' ] ) &&
6294+ ! in_array ( 'wp-interactivity ' , $ wp_scripts ->registered ['wp-block-image-view ' ]->deps , true )
6295+ ) {
6296+ $ wp_scripts ->registered ['wp-block-image-view ' ]->deps [] = 'wp-interactivity ' ;
6297+ }
6298+ }
0 commit comments