@@ 258-262 (lines=5) @@ | ||
255 | $args = array(); |
|
256 | $user = get_post_meta( $this->media_id, 'wp_syndicate-basic-auth-user', true ); |
|
257 | $pass = get_post_meta( $this->media_id, 'wp_syndicate-basic-auth-pass', true ); |
|
258 | if ( !empty($user) && !empty($pass) ) { |
|
259 | $args = array( |
|
260 | 'headers' => array( 'Authorization' => 'Basic ' . base64_encode( $user . ':' . $pass ) ) |
|
261 | ); |
|
262 | } |
|
263 | ||
264 | $args['timeout'] = 30; |
|
265 | if ( $media = remote_get_file($matches[2], '', $args) ) { |
|
@@ 296-300 (lines=5) @@ | ||
293 | $args = array(); |
|
294 | $user = get_post_meta( $this->media_id, 'wp_syndicate-basic-auth-user', true ); |
|
295 | $pass = get_post_meta( $this->media_id, 'wp_syndicate-basic-auth-pass', true ); |
|
296 | if ( !empty($user) && !empty($pass) ) { |
|
297 | $args = array( |
|
298 | 'headers' => array( 'Authorization' => 'Basic ' . base64_encode( $user . ':' . $pass ) ) |
|
299 | ); |
|
300 | } |
|
301 | ||
302 | $args['timeout'] = 30; |
|
303 | if ( $media = remote_get_file($link, '', $args) ) { |