Skip to content

Commit

Permalink
Fix doc; remove deprecated curl arg
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Aug 17, 2023
1 parent 0b14ef7 commit 74bb2e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wpt-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function wpt_set_log( $data, $id, $message ) {
* @param string $data Option key.
* @param int $id Post ID.
*
* @return stored message.
* @return string message.
*/
function wpt_get_log( $data, $id ) {
if ( 'test' === $id ) {
Expand Down Expand Up @@ -806,7 +806,6 @@ function wp_get_curl( $url ) {
curl_setopt( $curl, CURLOPT_USERAGENT, '' );
curl_setopt( $curl, CURLOPT_TIMEOUT, 10 );
curl_setopt( $curl, CURLOPT_FOLLOWLOCATION, true );
curl_setopt( $curl, CURLOPT_BINARYTRANSFER, true );

$response = curl_exec( $curl );
if ( 0 !== curl_errno( $curl ) || 200 !== curl_getinfo( $curl, CURLINFO_HTTP_CODE ) ) {
Expand Down

0 comments on commit 74bb2e0

Please sign in to comment.