ebab-case. $font_face = static::to_kebab_case( $font_face ); $converted_font_faces[] = $font_face; } return $converted_font_faces; } /** * Converts each 'file:./' placeholder into a URI to the font file in the theme. * * The 'file:./' is specified in the theme's `theme.json` as a placeholder to be * replaced with the URI to the font file's location in the theme. When a "src" * beings with this placeholder, it is replaced, converting the src into a URI. * * @since 6.4.0 * * @param array $src An array of font file sources to process. * @return array An array of font file src URI(s). */ private static function to_theme_file_uri( array $src ) { $placeholder = 'file:./'; foreach ( $src as $src_key => $src_url ) { // Skip if the src doesn't start with the placeholder, as there's nothing to replace. if ( ! str_starts_with( $src_url, $placeholder ) ) { continue; } $src_file = str_replace( $placeholder, '', $src_url ); $src[ $src_key ] = get_theme_file_uri( $src_file ); } return $src; } /** * Converts all first dimension keys into kebab-case. * * @since 6.4.0 * * @param array $data The array to process. * @return array Data with first dimension keys converted into kebab-case. */ private static function to_kebab_case( array $data ) { foreach ( $data as $key => $value ) { $kebab_case = _wp_to_kebab_case( $key ); $data[ $kebab_case ] = $value; if ( $kebab_case !== $key ) { unset( $data[ $key ] ); } } return $data; } } Shop - NPS-Machines d'impression maroc
Fatal error: Uncaught Error: Class "WP_Font_Face_Resolver" not found in /htdocs/wp-includes/fonts.php:46 Stack trace: #0 /htdocs/wp-includes/class-wp-hook.php(324): wp_print_font_faces('') #1 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /htdocs/wp-includes/general-template.php(3064): do_action('wp_head') #4 /htdocs/wp-content/themes/machic/header.php(16): wp_head() #5 /htdocs/wp-includes/template.php(810): require_once('/htdocs/wp-cont...') #6 /htdocs/wp-includes/template.php(745): load_template('/htdocs/wp-cont...', true, Array) #7 /htdocs/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #8 /htdocs/wp-content/themes/machic/woocommerce/archive-product.php(24): get_header('shop') #9 /htdocs/wp-includes/template-loader.php(106): include('/htdocs/wp-cont...') #10 /htdocs/wp-blog-header.php(19): require_once('/htdocs/wp-incl...') #11 /htdocs/index.php(17): require('/htdocs/wp-blog...') #12 {main} thrown in /htdocs/wp-includes/fonts.php on line 46