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/ExtendedContainer.php:210 Stack trace: #0 /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php(69): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->is_class_allowed('Automattic\\WooC...') #1 /htdocs/wp-content/plugins/woocommerce/lib/packages/League/Container/Container.php(98): Automattic\WooCommerce\Internal\DependencyManagement\ExtendedContainer->add('Automattic\\WooC...', Object(Automattic\WooCommerce\Container), true) #2 /htdocs/wp-content/plugins/woocommerce/src/Container.php(106): Automattic\WooCommerce\Vendor\League\Container\Container->share('Automattic\\WooC...', Object(Automattic\WooCommerce\Container)) #3 /htdocs/wp-content/plugins/woocommerce/woocommerce.php(38): Automattic\WooCommerce\Container->__construct() #4 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #5 /htdocs/wp-config.php(98): require_once('/htdocs/wp-sett...') #6 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #7 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #8 /htdocs/index.php(17): require('/htdocs/wp-blog...') #9 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Internal/DependencyManagement/ExtendedContainer.php on line 210