Skip to content

Commit b681d64

Browse files
authored
Use wp_safe_remote_get for Starter Kit URL import (#2732)
1 parent 936984d commit b681d64

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: security
3+
4+
Improved security of the Starter Kit URL import by using wp_safe_remote_get.

includes/wp-admin/import/class-starter-kit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public static function handle_url_import() {
197197
}
198198

199199
// Fetch the URL content.
200-
$response = \wp_remote_get(
200+
$response = \wp_safe_remote_get(
201201
$url,
202202
array(
203203
'timeout' => 30,

0 commit comments

Comments
 (0)