Skip to content

Commit 470fcfe

Browse files
committed
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
1 parent b47e1c7 commit 470fcfe

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
@@ -6479,3 +6479,17 @@ function wp_print_auto_sizes_contain_css_fix() {
64796479
<style>img:is([sizes="auto" i], [sizes^="auto," i]) { contain-intrinsic-size: 3000px 1500px }</style>
64806480
<?php
64816481
}
6482+
6483+
/**
6484+
* Registers development scripts that integrate with `@wordpress/scripts`.
6485+
*
6486+
* @see https://github.com/WordPress/gutenberg/tree/trunk/packages/scripts#start
6487+
*
6488+
* @since 6.0.0
6489+
* @deprecated 7.0.0 Obsolete due to a change in how Gutenberg is included in Core. See #64393.
6490+
*
6491+
* @param WP_Scripts $scripts WP_Scripts object.
6492+
*/
6493+
function wp_register_development_scripts( $scripts ) {
6494+
_deprecated_function( __FUNCTION__, '7.0.0' );
6495+
}

0 commit comments

Comments
 (0)