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

WordPress Trac noreply at wordpress.org
Thu Jul 14 12:20:09 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 sabernhardt):

 I agree with keeping the translated string and the prefix variables as
 they are.

 However, I think replacing the six instances of `get_option( 'home' )`
 with a variable that escapes `home_url()` could improve the code.
 {{{
 $url_base = esc_url( home_url() );
 }}}

 Would that belong on a new ticket?

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


More information about the wp-trac mailing list