|
@@ -43,9 +43,9 @@ |
|
43
|
43
|
* @param string $url |
|
44
|
44
|
* @return array |
|
45
|
45
|
*/ |
|
46
|
46
|
static public function get_for_url( $url, $logged_in = true ) { |
|
47
|
|
- $response = wp_remote_get( |
|
47
|
+ $response = wp_safe_remote_get( |
|
48
|
48
|
$url, [ |
|
49
|
49
|
'cookies' => $logged_in ? $_COOKIE : [], |
|
50
|
50
|
] |
|
51
|
51
|
); |