} } $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; } /** * Get etag header for cache validation. * * @since 6.7.0 * * @global string $wp_version The WordPress version string. * * @param string[] $load Array of script or style handles to load. * @return string Etag header. */ public function get_etag( $load ) { /* * Note: wp_get_wp_version() is not used here, as this file can be included * via wp-admin/load-scripts.php or wp-admin/load-styles.php, in which case * wp-includes/functions.php is not loaded. */ global $wp_version; $etag = "WP:{$wp_version};"; foreach ( $load as $handle ) { if ( ! array_key_exists( $handle, $this->registered ) ) { continue; } $ver = $this->registered[ $handle ]->ver ?? $wp_version; $etag .= "{$handle}:{$ver};"; } /* * This is not intended to be cryptographically secure, just a fast way to get * a fixed length string based on the script versions. As this file does not * load the full WordPress environment, it is not possible to use the salted * wp_hash() function. */ return 'W/"' . md5( $etag ) . '"'; } }
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(239): require('/var/www/html/r...') #2 /var/www/html/revistacentral.com.br/web/wp-config.php(97): 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