Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleans up phpstan errors #1937

Merged
merged 1 commit into from Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions inc/enqueue.php
Expand Up @@ -27,7 +27,7 @@ function understrap_scripts() {
$theme_scripts = "/js/theme-bootstrap4{$suffix}.js";
}

$css_version = $theme_version . '.' . filemtime( get_template_directory() . $theme_styles );
$css_version = $theme_version . '.' . filemtime( get_template_directory() . $theme_styles ); // @phpstan-ignore-line -- file exists
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.
Expand All @@ -37,7 +37,7 @@ function understrap_scripts() {

wp_enqueue_script( 'jquery' );

$js_version = $theme_version . '.' . filemtime( get_template_directory() . $theme_scripts );
$js_version = $theme_version . '.' . filemtime( get_template_directory() . $theme_scripts ); // @phpstan-ignore-line -- file exists
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' );
Expand Down
4 changes: 2 additions & 2 deletions inc/hooks.php
Expand Up @@ -36,13 +36,13 @@ function 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' ),
$the_theme->get( 'Name' ), // @phpstan-ignore-line -- theme exists
'<a href="' . esc_url( __( 'https://understrap.com', 'understrap' ) ) . '">understrap.com</a>'
),
sprintf(
/* translators: Theme version */
esc_html__( 'Version: %1$s', 'understrap' ),
$the_theme->get( 'Version' )
$the_theme->get( 'Version' ) // @phpstan-ignore-line -- theme exists
)
);

Expand Down