[wp-trac] [WordPress Trac] #63313: Add missing escapes

WordPress Trac noreply at wordpress.org
Fri Apr 18 15:20:33 UTC 2025


#63313: Add missing escapes
-------------------------------+-------------------------------
 Reporter:  rutvikbhambhi2004  |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Customize          |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  has-patch close    |     Focuses:  coding-standards
-------------------------------+-------------------------------
Changes (by sabernhardt):

 * keywords:  has-patch => has-patch close
 * component:  General => Customize


Comment:

 Hi and thanks for the patch!

 The `$background_image_thumb` variable is already escaped, earlier:
 {{{
 $background_image_thumb = get_background_image();
 if ( $background_image_thumb ) {
         $background_image_thumb = esc_url( set_url_scheme( get_theme_mod(
 'background_image_thumb', str_replace( '%', '%%', $background_image_thumb
 ) ) ) );
 }}}

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


More information about the wp-trac mailing list