Skip to content

Commit e817396

Browse files
committed
Force the \ to the native functions
1 parent 1bcc6f7 commit e817396

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inc/Services/Assets.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function register_assets(): void {
6969
$this->assets_tools->register_script( 'scripts', 'dist/' . $file, $scripts_dependencies, $theme->get( 'Version' ), true );
7070

7171
// CSS
72-
wp_register_style( 'theme-style', get_stylesheet_uri(), [], $theme->get( 'Version' ) );
72+
\wp_register_style( 'theme-style', \get_stylesheet_uri(), [], $theme->get( 'Version' ) );
7373
}
7474

7575
/**
@@ -98,6 +98,7 @@ public function enqueue_styles(): void {
9898
*/
9999
public function stylesheet_uri( string $stylesheet_uri ): string {
100100
if ( ! defined( 'SCRIPT_DEBUG' ) || SCRIPT_DEBUG === false ) {
101+
101102
$file = $this->get_min_file( 'css' );
102103
if ( ! empty( $file ) && file_exists( \get_theme_file_path( '/dist/' . $file ) ) ) {
103104
return \get_theme_file_uri( '/dist/' . $file );

0 commit comments

Comments
 (0)