[IMPROVEMENT] - wp_register_script changes in version 6.3 #390
Labels
feature request
New feature request
improvement
Small improvement fixes, either readability or performance improvements
In WP 6.3, the core changed the
$in_footer
parameter to be an$args
parameter array (because why not).This will require changes wherever this function is used in the libs such as here on line 126:
eightshift-libs/src/Enqueue/Admin/AbstractEnqueueAdmin.php
Lines 121 to 127 in a5f24a4
The
$args
argument can be a boolean or a false (which means currently this won't break anything on the existing projects, which is great, no matter how this 'type' is just... sigh... WordPress...) that hasstrategy
andin_footer
keys.See more: https://developer.wordpress.org/reference/functions/wp_register_script/#parameters
The text was updated successfully, but these errors were encountered: