| @@ -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 | */ |