Skip to content

Commit eac63a4

Browse files
author
Marco Pereirinha
committed
Merge branch 'fix/remote-request' into fix/post-save-v3
2 parents 891d70d + 4c5278e commit eac63a4

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

php/class-connect.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function rest_save_wizard( WP_REST_Request $request ) {
214214

215215
if ( ! empty( $url ) ) {
216216
// Warm the last uploaded items in the media library.
217-
wp_safe_remote_request(
217+
wp_remote_request(
218218
Utils::rest_url( 'wp/v2/media' ),
219219
array(
220220
'timeout' => 0.1,
@@ -1024,7 +1024,7 @@ public static function test_rest_api_connectivity() {
10241024
);
10251025

10261026
$url = Utils::rest_url( REST_API::BASE . '/test_rest_api' );
1027-
$response = wp_safe_remote_get( $url, $args );
1027+
$response = wp_remote_get( $url, $args );
10281028

10291029
if ( is_wp_error( $response ) ) {
10301030
$result = array(

php/class-deactivation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public function rest_callback( WP_REST_Request $request ) {
429429

430430
$url = add_query_arg( array_filter( $args ), CLOUDINARY_ENDPOINTS_DEACTIVATION );
431431

432-
$response = wp_safe_remote_get( $url );
432+
$response = wp_remote_get( $url );
433433

434434
if ( 'uninstall' === $data ) {
435435
$this->cleanup();

php/class-rest-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ public function background_request( $endpoint, $params = array(), $method = 'POS
113113
$args['headers']['X-WP-Nonce'] = $params['nonce'];
114114

115115
// Send request.
116-
wp_safe_remote_request( $url, $args );
116+
wp_remote_request( $url, $args );
117117
}
118118
}

0 commit comments

Comments
 (0)