Opened 2 years ago
Closed 2 years ago
#55725 closed enhancement (fixed)
Twenty Twenty-One: Comment missing at the end of HTML tag in class file
Reported by: | haritpanchal | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | 5.9.3 |
Component: | Bundled Theme | Keywords: | has-patch commit |
Focuses: | coding-standards | Cc: |
Description
In the Twentytwentyone theme class file, one HTML tag comment is missing. As per WordPress coding standards, a comment should be there to show which HTML tag is ended.
Attachments (1)
Change History (9)
#2
@
2 years ago
- Component changed from Themes to Bundled Theme
- Summary changed from Comment missing At end of HTML tag in Class file. to Twenty Twenty-One: Comment missing at the end of HTML tag in class file
#4
@
2 years ago
- Keywords 2nd-opinion added
Hello and thank you for opening this ticket and for the related patch,
I'm only wondering if it's worth adding this kind of HTML comments in WP-Admin related HTML code. Indeed, this code is used to generate some customizer controls, so I'm not sure it's worth using HTML closure comment in that case.
#5
@
2 years ago
I guess you are right but I went through some older themes' class files (twentynineteen) and they have such HTML comments. My main concern was coding standards so I created this ticket.
Note: See
TracTickets for help on using
tickets.
Patch Added