wp/wp-includes/Requests/Auth/Basic.php
changeset 18 be944660c56a
parent 7 cf61fcea0001
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    51 	 *
    51 	 *
    52 	 * @see curl_before_send
    52 	 * @see curl_before_send
    53 	 * @see fsockopen_header
    53 	 * @see fsockopen_header
    54 	 * @param Requests_Hooks $hooks Hook system
    54 	 * @param Requests_Hooks $hooks Hook system
    55 	 */
    55 	 */
    56 	public function register(Requests_Hooks &$hooks) {
    56 	public function register(Requests_Hooks $hooks) {
    57 		$hooks->register('curl.before_send', array(&$this, 'curl_before_send'));
    57 		$hooks->register('curl.before_send', array($this, 'curl_before_send'));
    58 		$hooks->register('fsockopen.after_headers', array(&$this, 'fsockopen_header'));
    58 		$hooks->register('fsockopen.after_headers', array($this, 'fsockopen_header'));
    59 	}
    59 	}
    60 
    60 
    61 	/**
    61 	/**
    62 	 * Set cURL parameters before the data is sent
    62 	 * Set cURL parameters before the data is sent
    63 	 *
    63 	 *