Skip to content

Commit

Permalink
Merge pull request #1937 from understrap/fix/php-stan-errors
Browse files Browse the repository at this point in the history
cleans up phpstan errors
  • Loading branch information
bacoords committed Oct 5, 2022
2 parents b1e7f99 + 9743699 commit b3e22b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions inc/enqueue.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit b3e22b0

Please sign in to comment.