Skip to content

Commit

Permalink
PHP Warnings under WP 4.7 / Parameter 1 to FeedWordPressHTTPAuthentic…
Browse files Browse the repository at this point in the history
…ator::set_auth_options() expected to be a reference, value given in [...]/wp-includes/class-wp-hook.php on line 30 / new call to http_api_curl hook in WP4.7 inconsistent about use of ampersands; don't require an amped reference parameter for the curl handle here.
  • Loading branch information
Rad Geek committed Dec 10, 2016
1 parent 0c5336a commit 7fa77d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feedwordpresshttpauthenticator.class.php
Expand Up @@ -9,7 +9,7 @@ function __construct () {
endforeach; endforeach;


add_filter('pre_http_request', array($this, 'pre_http_request'), 10, 3); add_filter('pre_http_request', array($this, 'pre_http_request'), 10, 3);
add_action('http_api_curl', array($this, 'set_auth_options'), 1000, 1); add_action('http_api_curl', array($this, 'set_auth_options'), 1000, 3);
} /* FeedWordPressHTTPAuthenticator::__construct () */ } /* FeedWordPressHTTPAuthenticator::__construct () */


function methods_available () { function methods_available () {
Expand Down Expand Up @@ -150,7 +150,7 @@ function if_curl ($use, $args, $what) {
return $use; return $use;
} /* FeedWordPressHTTPAuthenticator::if_curl () */ } /* FeedWordPressHTTPAuthenticator::if_curl () */


function set_auth_options (&$handle) { function set_auth_options ($handle, $r, $url) {
if ('digest'==$this->args['authentication']) : if ('digest'==$this->args['authentication']) :
curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
endif; endif;
Expand Down

0 comments on commit 7fa77d4

Please sign in to comment.