_migration_required( $old_url, $new_url ) { // Do nothing if WordPress is being installed. if ( wp_installing() ) { return; } // Delete/reset the option if the new URL is not the HTTPS version of the old URL. if ( untrailingslashit( (string) $old_url ) !== str_replace( 'https://', 'http://', untrailingslashit( (string) $new_url ) ) ) { delete_option( 'https_migration_required' ); return; } // If this is a fresh site, there is no content to migrate, so do not require migration. $https_migration_required = get_option( 'fresh_site' ) ? false : true; update_option( 'https_migration_required', $https_migration_required ); }
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-includes/https-migration.php:1) in /htdocs/wp-content/plugins/post-views-counter/includes/class-counter.php on line 904

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-includes/https-migration.php:1) in /htdocs/wp-includes/pluggable.php on line 1435

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-includes/https-migration.php:1) in /htdocs/wp-includes/pluggable.php on line 1438