[wp-trac] [WordPress Trac] #61378: Escape Output in Storage Count List Item Class

WordPress Trac noreply at wordpress.org
Wed Jun 5 11:32:09 UTC 2024


#61378: Escape Output in Storage Count List Item Class
-----------------------------+-------------------------------
 Reporter:  krunal265        |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Administration   |     Version:  6.5.3
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |     Focuses:  coding-standards
-----------------------------+-------------------------------
Changes (by sabernhardt):

 * keywords:  has-patch => has-patch close


Comment:

 The value of the `$used_class` variable is either ' warning' or an empty
 string, which would not require escaping.

 A similar ticket concluded that a toolbar `$class` variable was not worth
 running the `esc_attr` function without any benefit. See
 ticket:58251#comment:23.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61378#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list