Script dependencies generates different outputs
I think the for each loop is a little wonky, if I’m understanding your question, you can try the following.👌 // Generate a list of dependencies for a given handle. function get_deps() { global $wp_scripts; $deps = array(); foreach ( $wp_scripts->registered as $handle => $script ) { if ( in_array( ‘jquery’, $script->deps, true ) ) … Read more