}
}
$queue = array_pop( $queues );
}
$this->all_queued_deps = $all_deps;
return isset( $this->all_queued_deps[ $handle ] );
}
/**
* Query the list for an item.
*
* @since 2.1.0
* @since 2.6.0 Moved from `WP_Scripts`.
*
* @param string $handle Name of the item. Should be unique.
* @param string $status Optional. Status of the item to query. Default 'registered'.
* @return bool|_WP_Dependency Found, or object Item data.
*/
public function query( $handle, $status = 'registered' ) {
switch ( $status ) {
case 'registered':
case 'scripts': // Back compat.
if ( isset( $this->registered[ $handle ] ) ) {
return $this->registered[ $handle ];
}
return false;
case 'enqueued':
case 'queue': // Back compat.
if ( in_array( $handle, $this->queue, true ) ) {
return true;
}
return $this->recurse_deps( $this->queue, $handle );
case 'to_do':
case 'to_print': // Back compat.
return in_array( $handle, $this->to_do, true );
case 'done':
case 'printed': // Back compat.
return in_array( $handle, $this->done, true );
}
return false;
}
/**
* Set item group, unless already in a lower group.
*
* @since 2.8.0
*
* @param string $handle Name of the item. Should be unique.
* @param bool $recursion Internal flag that calling function was called recursively.
* @param int|false $group Group level: level (int), no group (false).
* @return bool Not already in the group or a lower group.
*/
public function set_group( $handle, $recursion, $group ) {
$group = (int) $group;
if ( isset( $this->groups[ $handle ] ) && $this->groups[ $handle ] <= $group ) {
return false;
}
$this->groups[ $handle ] = $group;
return true;
}
}
Fatal error: Uncaught Error: Class 'WP_Dependencies' not found in /var/www/html/revistacentral.com.br/web/wp-includes/class-wp-scripts.php:18
Stack trace:
#0 /var/www/html/revistacentral.com.br/web/wp-includes/script-loader.php(26): require()
#1 /var/www/html/revistacentral.com.br/web/wp-settings.php(237): require('/var/www/html/r...')
#2 /var/www/html/revistacentral.com.br/web/wp-config.php(94): require_once('/var/www/html/r...')
#3 /var/www/html/revistacentral.com.br/web/wp-load.php(50): require_once('/var/www/html/r...')
#4 /var/www/html/revistacentral.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/r...')
#5 /var/www/html/revistacentral.com.br/web/index.php(17): require('/var/www/html/r...')
#6 {main}
thrown in /var/www/html/revistacentral.com.br/web/wp-includes/class-wp-scripts.php on line 18
Fatal error: Uncaught Error: Call to a member function set() on null in /var/www/html/revistacentral.com.br/web/wp-includes/l10n.php:856
Stack trace:
#0 /var/www/html/revistacentral.com.br/web/wp-includes/l10n.php(959): load_textdomain('default', '/var/www/html/r...', 'pt_BR')
#1 /var/www/html/revistacentral.com.br/web/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main}
thrown in /var/www/html/revistacentral.com.br/web/wp-includes/l10n.php on line 856