From b1238ec96c603cf4782b60b48fe600ed325ff2dd Mon Sep 17 00:00:00 2001 From: Nurit Date: Mon, 23 Sep 2024 16:06:52 +0300 Subject: [PATCH] more lint --- modules/content/classes/render/widget-hero-render.php | 2 +- modules/content/widgets/hero.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/content/classes/render/widget-hero-render.php b/modules/content/classes/render/widget-hero-render.php index 48befc6b..4dcfad53 100644 --- a/modules/content/classes/render/widget-hero-render.php +++ b/modules/content/classes/render/widget-hero-render.php @@ -66,7 +66,7 @@ public function render_text_container() { Utils::print_unescaped_internal_string( $heading_output ); } ?> %3$s', Utils::validate_html_tag( $subheading_tag ), 'class="e-hero__subheading"', esc_html( $subheading_text ) ); + $subheading_output = sprintf( '<%1$s %2$s>%3$s', Utils::validate_html_tag( $subheading_tag ), 'class="e-hero__subheading"', esc_html( $subheading_text ) ); // Escaped above Utils::print_unescaped_internal_string( $subheading_output ); } ?> diff --git a/modules/content/widgets/hero.php b/modules/content/widgets/hero.php index a7b69bcc..19709a2f 100644 --- a/modules/content/widgets/hero.php +++ b/modules/content/widgets/hero.php @@ -60,8 +60,8 @@ protected function add_content_section() { $this->add_content_image_section(); } - protected function add_style_section() { - $this->add_style_content_section(); + protected function add_style_section() { + $this->add_style_content_section(); $this->add_style_image_section(); $this->add_style_box_section(); }