Plugin Updates

This commit is contained in:
Tony Volpe
2024-03-19 15:33:31 +00:00
parent ff5b56dc44
commit 3a70a6e4bf
317 changed files with 8178 additions and 2933 deletions

View File

@@ -29,13 +29,13 @@ class Asset_Helper {
*
* @param string $handle The handle.
*
* @return string[]|bool All dependencies of the given handle.
* @return string[] All dependencies of the given handle.
*/
public function get_dependency_handles( $handle ) {
$scripts = \wp_scripts();
if ( ! isset( $scripts->registered[ $handle ] ) ) {
return false;
return [];
}
$obj = $scripts->registered[ $handle ];