[wp-trac] [WordPress Trac] #62787: Twenty Nineteen : PHPCS Fixes

WordPress Trac noreply at wordpress.org
Wed Jan 8 13:03:18 UTC 2025


#62787: Twenty Nineteen : PHPCS Fixes
-------------------------------+-----------------------------
 Reporter:  pitamdey           |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Themes             |    Version:
 Severity:  normal             |   Keywords:  has-patch
  Focuses:  php-compatibility  |
-------------------------------+-----------------------------
 In theme Twenty Nineteen , I can see one PHPCS Warning in function.php
 file i.e.
 All output should be run through an escaping function (see the Security
 sections in the WordPress Developer Handbooks), found
 'twentynineteen_custom_colors_css'

 Here :
 {{{
 <style type="text/css" id="custom-theme-colors" <?php echo
 is_customize_preview() ? 'data-hue="' . absint( $primary_color ) . '"' :
 ''; ?>>
                 <?php echo twentynineteen_custom_colors_css(); ?>
         </style>
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62787>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list