Make WordPress Core

Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#63345 closed defect (bug) (fixed)

Twenty Twenty-Five: Remove echo from esc_html_e() in banner-cover-big-heading.php

Reported by: dilipbheda Owned by: SergeyBiryukov
Priority: normal Milestone: 6.9
Component: Bundled Theme Version:
Severity: normal Keywords: has-patch
Cc: Focuses: coding-standards

Description

In the patterns/banner-cover-big-heading.php file, I noticed that esc_html_e() is being used with echo, which is redundant since esc_html_e() already echoes the output.

Change History (4)

This ticket was mentioned in ​PR #8738 on ​WordPress/wordpress-develop by ​@dilipbheda.


19 months ago
#1

#2 @sabernhardt
19 months ago

  • Milestone Awaiting Review → 6.9
  • Summary [Twenty Twenty-Five]: Remove echo from esc_html_e() in banner-cover-big-heading.php → Twenty Twenty-Five: Remove echo from esc_html_e() in banner-cover-big-heading.php

#3 @SergeyBiryukov
19 months ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 60192:

Twenty Twenty-Five: Remove redundant echo from esc_html_e().

Follow-up to [59233].

Props dilipbheda, sabernhardt.
Fixes #63345.

#4 @sabernhardt
19 months ago

Thanks for committing this!

For the record, I ran searches on echo esc_html_e( and echo esc_attr_e( but did not find any other instances in Core.

Note: See TracTickets for help on using tickets.