diff --git a/inc/enqueue.php b/inc/enqueue.php index 156e2ee4..e5e7d9e3 100644 --- a/inc/enqueue.php +++ b/inc/enqueue.php @@ -27,7 +27,7 @@ if ( ! function_exists( 'understrap_scripts' ) ) { $theme_scripts = "/js/theme-bootstrap4{$suffix}.js"; } - $css_version = $theme_version . '.' . filemtime( get_template_directory() . $theme_styles ); // @phpstan-ignore-line -- file exists + $css_version = $theme_version . '.' . filemtime( get_template_directory() . $theme_styles ); wp_enqueue_style( 'understrap-styles', get_template_directory_uri() . $theme_styles, array(), $css_version ); // Fix that the offcanvas close icon is hidden behind the admin bar. @@ -37,7 +37,7 @@ if ( ! function_exists( 'understrap_scripts' ) ) { wp_enqueue_script( 'jquery' ); - $js_version = $theme_version . '.' . filemtime( get_template_directory() . $theme_scripts ); // @phpstan-ignore-line -- file exists + $js_version = $theme_version . '.' . filemtime( get_template_directory() . $theme_scripts ); wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . $theme_scripts, array(), $js_version, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); diff --git a/inc/hooks.php b/inc/hooks.php index 7d5ef417..88106c6f 100644 --- a/inc/hooks.php +++ b/inc/hooks.php @@ -36,13 +36,13 @@ if ( ! function_exists( 'understrap_add_site_info' ) ) { sprintf( /* translators: 1: Theme name, 2: Theme author */ esc_html__( 'Theme: %1$s by %2$s.', 'understrap' ), - $the_theme->get( 'Name' ), // @phpstan-ignore-line -- theme exists + $the_theme->get( 'Name' ), 'understrap.com' ), sprintf( /* translators: Theme version */ esc_html__( 'Version: %s', 'understrap' ), - $the_theme->get( 'Version' ) // @phpstan-ignore-line -- theme exists + $the_theme->get( 'Version' ) ) );