[wp-trac] [WordPress Trac] #44697: Argument type does not match: user.php

WordPress Trac noreply at wordpress.org
Tue Jan 15 06:32:26 UTC 2019


#44697: Argument type does not match: user.php
-------------------------------------+-------------------------------
 Reporter:  subrataemfluence         |       Owner:  pento
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.1
Component:  Users                    |     Version:  trunk
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-refresh  |     Focuses:  coding-standards
-------------------------------------+-------------------------------
Changes (by pento):

 * owner:  (none) => pento
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44603" 44603]:
 {{{
 #!CommitTicketReference repository="" revision="44603"
 Users: Correct the default value in `setup_userdata()`.

 The `$for_user_id` parameter is an `int`, not a `string`, so the default
 value should be `0`, rather than an empty string.

 Props subrataemfluence.
 Fixes #44697.
 }}}

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


More information about the wp-trac mailing list