wp/wp-includes/https-migration.php
changeset 21 48c4eec2b7e6
parent 18 be944660c56a
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
    95 	// Update the options.
    95 	// Update the options.
    96 	update_option( 'home', $home );
    96 	update_option( 'home', $home );
    97 	update_option( 'siteurl', $siteurl );
    97 	update_option( 'siteurl', $siteurl );
    98 
    98 
    99 	if ( ! wp_is_using_https() ) {
    99 	if ( ! wp_is_using_https() ) {
   100 		// If this did not result in the site recognizing HTTPS as being used,
   100 		/*
   101 		// revert the change and return false.
   101 		 * If this did not result in the site recognizing HTTPS as being used,
       
   102 		 * revert the change and return false.
       
   103 		 */
   102 		update_option( 'home', $orig_home );
   104 		update_option( 'home', $orig_home );
   103 		update_option( 'siteurl', $orig_siteurl );
   105 		update_option( 'siteurl', $orig_siteurl );
   104 		return false;
   106 		return false;
   105 	}
   107 	}
   106 
   108