[wp-trac] [WordPress Trac] #41697: Unused parameter in function is_user_option_local

WordPress Trac noreply at wordpress.org
Tue Aug 22 12:06:23 UTC 2017


#41697: Unused parameter in function is_user_option_local
--------------------------------+------------------------------
 Reporter:  bnap00              |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:  3.0
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+------------------------------

Comment (by flixos90):

 I think instead of removing the parameter we should rather apply it
 correctly: If `$user_id` is passed, call `get_user_by( 'id', $user_id )`,
 otherwise stick with `wp_get_current_user()`.

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


More information about the wp-trac mailing list