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

WordPress Trac noreply at wordpress.org
Sun Apr 28 19:26:30 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/includes/user.php:350
 > Reason     : TooManyArgument
 > Snippet    : delete_user_setting('default_password_nag', $user_ID)
 > Line       : delete_user_setting('default_password_nag', $user_ID);
 > }}}

 Introduced in [14608]. Unlike `get_user_option()`, `delete_user_setting()`
 does not accept a second parameter, so it deletes the setting for current
 user.

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


More information about the wp-trac mailing list