[wp-trac] [WordPress Trac] #56110: Need to use esc_html__ escaping function

WordPress Trac noreply at wordpress.org
Wed Jul 6 19:51:51 UTC 2022


#56110: Need to use esc_html__ escaping function
----------------------------+----------------------
 Reporter:  kartikpatel     |       Owner:  (none)
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:  invalid
 Keywords:  has-patch       |     Focuses:
----------------------------+----------------------
Changes (by desrosj):

 * keywords:  has-patch close 2nd-opinion => has-patch
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Replying to [comment:2 SergeyBiryukov]:

 > The `$blog_prefix` and `$prefix` values here are [source:tags/6.0/src
 /wp-admin/options-permalink.php?marks=76-90#L75 hardcoded and not user-
 editable], so it's not quite clear why they should be escaped.

 I agree with this assessment, so closing this one out. @kartikpatel if you
 still feel that `esc_html__` should be used here instead and are able
 provide additional details why, feel free to reopen.

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


More information about the wp-trac mailing list