Checks whether all dependents of a given handle are in the footer.
Description
If there are no dependents, this is considered the same as if all dependents were in the footer.
Parameters
$handle
stringrequired- Script handle.
Source
private function are_all_dependents_in_footer( $handle ) {
foreach ( $this->get_dependents( $handle ) as $dep ) {
if ( isset( $this->groups[ $dep ] ) && 0 === $this->groups[ $dep ] ) {
return false;
}
}
return true;
}
Changelog
Version | Description |
---|---|
6.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.