[wp-trac] [WordPress Trac] #44274: htmlspecialchars call in template.php needs to be update

WordPress Trac noreply at wordpress.org
Wed May 30 02:12:44 UTC 2018


#44274: htmlspecialchars call in template.php needs to be update
--------------------------+-----------------------------
 Reporter:  khaihong      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Under wp-admin/includes/, the call needs to be changed from
 htmlspecialchars($context))
 to
 htmlspecialchars($context, $flags=NULL, $encoding='UTF-8'))

 Otherwise, there are constant debug warnings:
 htmlspecialchars(): charset   not supported, assuming utf-8

 I've had those warnings for themes twenty-fourteen and twenty-seventeen,
 using only 2 active plugins Query Monitor and Really Simple SSL.

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


More information about the wp-trac mailing list