Changeset 58322 for trunk/src/wp-includes/deprecated.php
- Timestamp:
- 06/04/2024 07:37:06 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r58284 r58322 6250 6250 * @since 6.4.0 6251 6251 * @deprecated 6.5.0 6252 *6253 * @global WP_Scripts $wp_scripts6254 6252 */ 6255 6253 function block_core_query_ensure_interactivity_dependency() { 6256 6254 _deprecated_function( __FUNCTION__, '6.5.0', 'wp_register_script_module' ); 6257 global $wp_scripts;6258 if (6259 isset( $wp_scripts->registered['wp-block-query-view'] ) &&6260 ! in_array( 'wp-interactivity', $wp_scripts->registered['wp-block-query-view']->deps, true )6261 ) {6262 $wp_scripts->registered['wp-block-query-view']->deps[] = 'wp-interactivity';6263 }6264 6255 } 6265 6256 … … 6269 6260 * @since 6.4.0 6270 6261 * @deprecated 6.5.0 6271 *6272 * @global WP_Scripts $wp_scripts6273 6262 */ 6274 6263 function block_core_file_ensure_interactivity_dependency() { 6275 6264 _deprecated_function( __FUNCTION__, '6.5.0', 'wp_register_script_module' ); 6276 global $wp_scripts;6277 if (6278 isset( $wp_scripts->registered['wp-block-file-view'] ) &&6279 ! in_array( 'wp-interactivity', $wp_scripts->registered['wp-block-file-view']->deps, true )6280 ) {6281 $wp_scripts->registered['wp-block-file-view']->deps[] = 'wp-interactivity';6282 }6283 6265 } 6284 6266 … … 6288 6270 * @since 6.4.0 6289 6271 * @deprecated 6.5.0 6290 *6291 * @global WP_Scripts $wp_scripts6292 6272 */ 6293 6273 function block_core_image_ensure_interactivity_dependency() { 6294 6274 _deprecated_function( __FUNCTION__, '6.5.0', 'wp_register_script_module' ); 6295 global $wp_scripts;6296 if (6297 isset( $wp_scripts->registered['wp-block-image-view'] ) &&6298 ! in_array( 'wp-interactivity', $wp_scripts->registered['wp-block-image-view']->deps, true )6299 ) {6300 $wp_scripts->registered['wp-block-image-view']->deps[] = 'wp-interactivity';6301 }6302 6275 } 6303 6276
Note: See TracChangeset
for help on using the changeset viewer.