mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-18 22:13:20 +09:00
Fix inline style sanitization
This commit is contained in:
@@ -84,7 +84,7 @@ class Display_Featured_Image_Genesis_Output {
|
||||
*/
|
||||
public function add_inline_style() {
|
||||
$css = sprintf( '.big-leader { max-height: %spx; }', $this->setting['max_height'] );
|
||||
wp_add_inline_style( 'displayfeaturedimage-style', strip_tags( $css ) );
|
||||
wp_add_inline_style( 'displayfeaturedimage-style', wp_strip_all_tags( $css ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user