_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: Class "Automattic\WooCommerce\StoreApi\Routes\V1\CartCoupons" not found in /htdocs/wp-content/plugins/woocommerce/src/StoreApi/deprecated.php on line 73
re WordPress.Security.EscapeOutput.ExceptionNotEscaped throw new \InvalidArgumentException( self::class_name_without_namespace( __CLASS__ ) . '::' . __FUNCTION__ . ': the values array is empty' ); } return '(' . implode( ',', $values ) . ')'; } /** * Get the name of a class without the namespace. * * @param string $class_name The full class name. * @return string The class name without the namespace. */ public static function class_name_without_namespace( string $class_name ) { // A '?:' would convert this to a one-liner, but WP coding standards disallow these :shrug:. $result = substr( strrchr( $class_name, '\\' ), 1 ); return $result ? $result : $class_name; } /** * Normalize the slashes (/ and \) of a local filesystem path by converting them to DIRECTORY_SEPARATOR. * * @param string|null $path Path to normalize. * @return string|null Normalized path, or null if the input was null. */ public static function normalize_local_path_slashes( ?string $path ) { return is_null( $path ) ? null : str_replace( array( '\\', '/' ), DIRECTORY_SEPARATOR, $path ); } }
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\Utilities\StringUtil" not found in /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php:220 Stack trace: #0 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php(100): Automattic\WooCommerce\Internal\DependencyManagement\RuntimeContainer->is_class_allowed('Automattic\\WooC...') #1 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php(78): Automattic\WooCommerce\Internal\DependencyManagement\RuntimeContainer->get_core('Automattic\\WooC...', Array) #2 /htdocs/wp-content/plugins/woocommerce/src/Container.php(68): Automattic\WooCommerce\Internal\DependencyManagement\RuntimeContainer->get('Automattic\\WooC...') #3 /htdocs/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/Settings.php(62): Automattic\WooCommerce\Container->get('Automattic\\WooC...') #4 /htdocs/wp-content/plugins/woocommerce/src/Utilities/LoggingUtil.php(94): Automattic\WooCommerce\Internal\Admin\Logging\Settings::get_log_directory(false) #5 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(496): Automattic\WooCommerce\Utilities\LoggingUtil::get_log_directory(false) #6 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(253): WooCommerce->define_constants() #7 /htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(163): WooCommerce->__construct() #8 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(47): WooCommerce::instance() #9 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(62): WC() #10 /htdocs/wp-settings.php(560): include_once('/htdocs/wp-cont...') #11 /htdocs/wp-config.php(108): require_once('/htdocs/wp-sett...') #12 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #13 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #14 /htdocs/index.php(17): require('/htdocs/wp-blog...') #15 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/RuntimeContainer.php on line 220