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

WordPress Trac noreply at wordpress.org
Thu Jul 14 13:48:10 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:
----------------------------+----------------------

Comment (by SergeyBiryukov):

 Replying to [comment:4 sabernhardt]:
 > However, I think replacing the six instances of `get_option( 'home' )`
 with a variable that escapes `home_url()` could improve the code.

 Good point! That would remove a few repeated function calls.

 > Would that belong on a new ticket?

 I think a new ticket might be cleaner, as it seems a bit out of scope of
 the original suggestion. However, as that would touch the same code, we
 could also repurpose this one. I don't have a strong preference here :)

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


More information about the wp-trac mailing list