Skip to content

Commit

Permalink
fix: warning 391
Browse files Browse the repository at this point in the history
  • Loading branch information
drill-lancer committed Feb 5, 2024
1 parent d2e027a commit 7d4fde8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ npx playwright test --project=chromium --trace on

## Change log

[ 不具合修正 ] 391 行目の条件式がおかしかったのを修正

0.2.1
[ 不具合修正 ] テーマ名取得方法 修正

Expand Down
2 changes: 1 addition & 1 deletion src/VkCssOptimize.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public static function get_css_minify_array() {
// 圧縮用の情報を生成.
if ( ! empty( $simple_minify_handles ) && is_array( $simple_minify_handles ) ) {
foreach ( $simple_minify_handles as $css_handle ) {
if ( ! empty( $registerd[ $css_handle ] && false !== strpos( $registerd[ $css_handle ]->src, site_url() ) ) ) {
if ( ! empty( $registerd[ $css_handle ] ) && false !== strpos( $registerd[ $css_handle ]->src, site_url() ) ) {
$css_array['simple_minify_css'][ $css_handle ] = array(
'id' => $css_handle,
'url' => $registerd[ $css_handle ]->src,
Expand Down

0 comments on commit 7d4fde8

Please sign in to comment.