@@ -36,7 +36,7 @@ public function __construct() {
3636 if ( $ options ) {
3737 $ this ->options = $ options ;
3838 if ( $ options ['enable ' ] ) {
39- add_filter ( 'pre_http_request ' , array ( $ this , 'pre_http_request ' ), 10 , 3 );
39+ add_filter ( 'pre_http_request ' , array ( $ this , 'pre_http_request ' ), 100 , 2 );
4040 add_filter ( 'pre_http_send_through_proxy ' , array ( $ this , 'send_through_proxy ' ), 10 , 4 );
4141 defined ( 'WP_PROXY_HOST ' ) ? '' : define ( 'WP_PROXY_HOST ' , $ options ['proxy_host ' ] );
4242 defined ( 'WP_PROXY_PORT ' ) ? '' : define ( 'WP_PROXY_PORT ' , $ options ['proxy_port ' ] );
@@ -236,11 +236,10 @@ public function admin_bar_menu( $wp_admin_bar ) {
236236 /**
237237 * Set request arg
238238 *
239- * @param bool $false is pre.
240239 * @param array $parsed_args args.
241240 * @param string $url url.
242241 */
243- public function pre_http_request ( $ false , $ parsed_args , $ url ) {
242+ public function pre_http_request ( $ parsed_args , $ url ) {
244243 if ( $ this ->send_through_proxy ( null , $ url , $ url , '' ) ) {
245244 $ parsed_args ['timeout ' ] = $ parsed_args ['timeout ' ] + 1200 ;
246245 @set_time_limit ( $ parsed_args ['timeout ' ] + 60 );
0 commit comments