diff --git a/inc/css-customize/css-customize-single.php b/inc/css-customize/css-customize-single.php index 04bf7b74..999fb3bb 100644 --- a/inc/css-customize/css-customize-single.php +++ b/inc/css-customize/css-customize-single.php @@ -25,11 +25,13 @@ function veu_insert_custom_css() { if ( is_singular() || ( is_admin() && isset( $_GET['post'] ) ) ) { global $post; - $css = veu_get_the_custom_css_single( $post ); - if ( $css ) { - // HTMLエンティティをデコードし、HTMLタグとその内容を削除 - $css = html_entity_decode( $css, ENT_QUOTES | ENT_HTML5 ); - echo ''; + if ( $post ) { + $css = veu_get_the_custom_css_single( $post ); + if ( $css ) { + // HTMLエンティティをデコードし、HTMLタグとその内容を削除 + $css = html_entity_decode( $css, ENT_QUOTES | ENT_HTML5 ); + echo ''; + } } } } diff --git a/readme.txt b/readme.txt index 59664e60..c428432e 100644 --- a/readme.txt +++ b/readme.txt @@ -81,6 +81,8 @@ e.g. == Changelog == +[ Bug Fix ][ CSS Customize ] Fix PHP warning on the settings screen of Contact Form 7. + = 9.100.7 = [ Bug fix ][ Categories/Custom taxonomies list widget ] Display order translation