WordPress at Your Fingertips
function is not described

_WP_Dependency::__construct() public WP 2.6.0

Setup dependencies.

{} It's a method of the class: _WP_Dependency{}

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


null. Nothing.


$_WP_Dependency = new _WP_Dependency();
$_WP_Dependency->__construct( ...$args );
...$args(mixed) (required)
Dependency information.


Since 2.6.0 Introduced.
Since 5.3.0 Formalized the existing ...$args parameter by adding it to the function signature.

Code of _WP_Dependency::__construct() WP 5.8.2

public function __construct( ...$args ) {
	list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = $args;
	if ( ! is_array( $this->deps ) ) {
		$this->deps = array();