[wp-trac] [WordPress Trac] #24210: Issues found using a static analysis tool

WordPress Trac noreply at wordpress.org
Sun Apr 28 23:38:55 UTC 2013


#24210: Issues found using a static analysis tool
--------------------------+------------------
 Reporter:  rlerdorf      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.6
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by SergeyBiryukov):

 > {{{
 > File       : wp-admin/network/site-settings.php:126
 > Reason     : TooManyArgument
 > Snippet    : esc_html(maybe_unserialize($option->option_value),
 'single')
 > Line       : $option->option_value = esc_html( maybe_unserialize(
 $option->option_value > ), 'single' );
 > }}}

 Introduced in [13106]. `wp_specialchars(..., 'single')` was replaced with
 `esc_html()`, which only accepts one parameter.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24210#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list