Skip to content

Commit 2d1661c

Browse files
youknowriaddmsnell
authored andcommitted
General: Restore and deprecate wp_register_development_scripts().
The function was removed in [61438] but should have been deprecated instead of removed outright, per WordPress backward compatibility policy. Hot reloading is not used anymore in the latest Gutenberg build tool. Props peterwilsoncc, westonruter. See #64393. git-svn-id: https://develop.svn.wordpress.org/trunk@61472 602fd350-edb4-49c9-b593-d223f7449a82 (cherry picked from commit 470fcfe)
1 parent ce32e92 commit 2d1661c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/wp-includes/deprecated.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6485,3 +6485,17 @@ function wp_print_auto_sizes_contain_css_fix() {
64856485
<style>img:is([sizes="auto" i], [sizes^="auto," i]) { contain-intrinsic-size: 3000px 1500px }</style>
64866486
<?php
64876487
}
6488+
6489+
/**
6490+
* Registers development scripts that integrate with `@wordpress/scripts`.
6491+
*
6492+
* @see https://github.com/WordPress/gutenberg/tree/trunk/packages/scripts#start
6493+
*
6494+
* @since 6.0.0
6495+
* @deprecated 7.0.0 Obsolete due to a change in how Gutenberg is included in Core. See #64393.
6496+
*
6497+
* @param WP_Scripts $scripts WP_Scripts object.
6498+
*/
6499+
function wp_register_development_scripts( $scripts ) {
6500+
_deprecated_function( __FUNCTION__, '7.0.0' );
6501+
}

0 commit comments

Comments
 (0)