_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 );
}
Fatal error: require(): Failed opening required '/home/arasetne/public_html/wp-includes/author-template.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/arasetne/public_html/wp-settings.php on line 208
Fatal error: Uncaught Error: Call to a member function set() on null in /home/arasetne/public_html/wp-includes/l10n.php:854
Stack trace:
#0 /home/arasetne/public_html/wp-includes/l10n.php(957): load_textdomain('default', '/home/arasetne/...', 'fa_IR')
#1 /home/arasetne/public_html/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main}
thrown in /home/arasetne/public_html/wp-includes/l10n.php on line 854