[wp-trac] [WordPress Trac] #31549: filter meta array in wp_insert_user

WordPress Trac noreply at wordpress.org
Sat Aug 22 16:21:36 UTC 2015


#31549: filter meta array in wp_insert_user
------------------------------+-----------------------------
 Reporter:  tharsheblows      |       Owner:  wonderboymusic
     Type:  enhancement       |      Status:  reviewing
 Priority:  normal            |   Milestone:  4.4
Component:  Users             |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------

Comment (by wonderboymusic):

 I'm not sure I would cast to array - maybe check after for `! $meta` and
 then set to `array()` - I'll think about it

 {{{
 php > $a = null;
 php > $b = (array) $a;
 php > var_dump( $b );
 array(0) {
 }
 php > $a = false;
 php > $b = (array) $a;
 php > var_dump( $b );
 array(1) {
   [0]=>
   bool(false)
 }
 php >
 }}}

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


More information about the wp-trac mailing list