PluginProbe
Vigilant – 100% Free Security Suite: Firewall, 2FA, Login, Headers, Scanner… / 2.11.12
Vigilant – 100% Free Security Suite: Firewall, 2FA, Login, Headers, Scanner… v2.11.12
2.11.12 2.11.11 2.11.10 2.11.9 2.11.7 2.11.8 2.11.6 2.11.5 2.11.4 2.11.3 2.11.1 2.11.2 2.11.0 2.10.5 2.10.4 2.10.3 2.10.2 2.10.1 2.10.0 2.9.9 2.9.8 2.9.6 2.9.7 2.9.5 2.9.4 All 87 releases
← All changes | includes/class-https-enforcer.php +0 -23 2.9.82.11.12 View file →
@@ -312,31 +312,8 @@
312 312 return $this->replace_http_with_https( $content );
313 313 }
314 314
315 315 /**
316 - * Update WordPress site URLs to HTTPS
317 - *
318 - * @return bool
319 - */
320 - public function update_site_urls() {
321 - $siteurl = get_option( 'siteurl' );
322 - $home = get_option( 'home' );
323 - $updated = false;
324 -
325 - if ( strpos( $siteurl, 'http://' ) === 0 ) {
326 - update_option( 'siteurl', str_replace( 'http://', 'https://', $siteurl ) );
327 - $updated = true;
328 - }
329 -
330 - if ( strpos( $home, 'http://' ) === 0 ) {
331 - update_option( 'home', str_replace( 'http://', 'https://', $home ) );
332 - $updated = true;
333 - }
334 -
335 - return $updated;
336 - }
337 -
338 - /**
339 316 * Check if site is properly configured for HTTPS
340 317 *
341 318 * @return array Status information.
342 319 */