diff --git a/README.md b/README.md index 266ced4..f987ffe 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ npx playwright test --project=chromium --trace on ## Change log +[ 不具合修正 ] 391 行目の条件式がおかしかったのを修正 + 0.2.1 [ 不具合修正 ] テーマ名取得方法 修正 diff --git a/src/VkCssOptimize.php b/src/VkCssOptimize.php index 85fdaba..1432e6f 100755 --- a/src/VkCssOptimize.php +++ b/src/VkCssOptimize.php @@ -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,