CHips L MINI SHELL

CHips L pro

Current Path : C:/websites/itcons/wp-includes/
Upload File :
Current File : C:/websites/itcons/wp-includes/class-wp-http-requests-hooks.php

<?php
/**
 * HTTP API: Requests hook bridge class
 *
 * @package WordPress
 * @subpackage HTTP
 * @since 4.7.0
 */

/**
 * Bridge to connect Requests internal hooks to WordPress actions.
 *
 * @since 4.7.0
 *
 * @see Requests_Hooks
 */
class WP_HTTP_Requests_Hooks extends Requests_Hooks {
	/**
	 * Requested URL.
	 *
	 * @var string Requested URL.
	 */
	protected $url;

	/**
	 * WordPress WP_HTTP request data.
	 *
	 * @var array Request data in WP_Http format.
	 */
	protected $request = array();

	/**
	 * Constructor.
	 *
	 * @param string $url URL to request.
	 * @param array $request Request data in WP_Http format.
	 */
	public function __construct( $url, $request ) {
		$this->url     = $url;
		$this->request = $request;
	}

	/**
	 * Dispatch a Requests hook to a native WordPress action.
	 *
	 * @param string $hook Hook name.
	 * @param array $parameters Parameters to pass to callbacks.
	 * @return boolean True if hooks were run, false if nothing was hooked.
	 */
	public function dispatch( $hook, $parameters = array() ) {
		$result = parent::dispatch( $hook, $parameters );

		// Handle back-compat actions
		switch ( $hook ) {
			case 'curl.before_send':
				/** This action is documented in wp-includes/class-wp-http-curl.php */
				do_action_ref_array( 'http_api_curl', array( &$parameters[0], $this->request, $this->url ) );
				break;
		}

		/**
		 * Transforms a native Request hook to a WordPress actions.
		 *
		 * This action maps Requests internal hook to a native WordPress action.
		 *
		 * @see https://github.com/rmccue/Requests/blob/master/docs/hooks.md
		 *
		 * @param array $parameters Parameters from Requests internal hook.
		 * @param array $request Request data in WP_Http format.
		 * @param string $url URL to request.
		 */
		do_action_ref_array( "requests-{$hook}", $parameters, $this->request, $this->url ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

		return $result;
	}
}

Copyright 2K16 - 2K18 Indonesian Hacker Rulez

Fatal error: Uncaught Error: Class 'WP_Hook' not found in C:\websites\itcons\wp-includes\plugin.php:111 Stack trace: #0 C:\websites\itcons\wp-content\plugins\wp-super-cache\wp-cache-phase1.php(109): add_filter('supercache_file...', 'wp_cache_check_...') #1 C:\websites\itcons\wp-content\advanced-cache.php(22): include_once('C:\\websites\\itc...') #2 C:\websites\itcons\wp-settings.php(91): include('C:\\websites\\itc...') #3 C:\websites\itcons\wp-config.php(93): require_once('C:\\websites\\itc...') #4 C:\websites\itcons\wp-load.php(37): require_once('C:\\websites\\itc...') #5 C:\websites\itcons\wp-blog-header.php(13): require_once('C:\\websites\\itc...') #6 C:\websites\itcons\index.php(498): require('C:\\websites\\itc...') #7 {main} thrown in C:\websites\itcons\wp-includes\plugin.php on line 111