GC_Dependencies::dequeue()
最后更新于:2021-11-27 14:14:16
GC_Dependencies::dequeue( string|string[]$handles)Dequeue an item or items.
参数
- $handles
-
(string|string[]) (Required) Item handle (string) or item handles (array of strings).
源文件
文件: gc-includes/class.gc-dependencies.php
public function dequeue( $handles ) {
foreach ( (array) $handles as $handle ) {
$handle = explode( '?', $handle );
$key = array_search( $handle[0], $this->queue, true );
if ( false !== $key ) {
// Reset all dependencies so they must be recalculated in recurse_deps().
$this->all_queued_deps = null;
unset( $this->queue[ $key ] );
unset( $this->args[ $handle[0] ] );
}
}
}