Skip to content

Commit

Permalink
Merge pull request #1153 from vektor-inc/fix/css-customize-post-error-
Browse files Browse the repository at this point in the history
[ Bug Fix ][ CSS Customize ] Fix PHP warning on the settings screen of Contact Form 7.
  • Loading branch information
kurudrive authored Dec 28, 2024
2 parents b989644 + e6ae971 commit 74af983
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 7 additions & 5 deletions inc/css-customize/css-customize-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<style type="text/css">/* ' . esc_html( veu_get_short_name() ) . ' CSS Customize Single */' . $css . '</style>';
if ( $post ) {
$css = veu_get_the_custom_css_single( $post );
if ( $css ) {
// HTMLエンティティをデコードし、HTMLタグとその内容を削除
$css = html_entity_decode( $css, ENT_QUOTES | ENT_HTML5 );
echo '<style type="text/css">/* ' . esc_html( veu_get_short_name() ) . ' CSS Customize Single */' . $css . '</style>';
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 74af983

Please sign in to comment.