← All changes
|
includes/admin/importers/class-snapshot-migrator.php
+1
-1
2.13.0
→
2.14.2
View file →
| @@ -2304,9 +2304,9 @@ | ||
| 2304 | 2304 | $current = $manager->get_settings('site'); |
| 2305 | 2305 | $updates = []; |
| 2306 | 2306 | foreach ($profiles as $platform => $url) { |
| 2307 | 2307 | $field = 'organization_social_' . $platform; |
| 2308 | - if (in_array($platform, $schema_platforms, true) && filter_var($url, FILTER_VALIDATE_URL) && empty($current[$field])) { | |
| 2308 | + if (in_array($platform, $schema_platforms, true) && \ThinkRank\Core\Url_Validator::is_valid($url) && empty($current[$field])) { | |
| 2309 | 2309 | $updates[$field] = esc_url_raw($url); |
| 2310 | 2310 | } |
| 2311 | 2311 | } |
| 2312 | 2312 | if (!empty($updates) && $manager->save_settings('site', null, $updates)) { |