[wp-trac] [WordPress Trac] #49087: impossible to set show_admin_bar_front to false in wp_insert_user

WordPress Trac noreply at wordpress.org
Sat Dec 28 02:57:45 UTC 2019


#49087: impossible to set show_admin_bar_front to false in wp_insert_user
--------------------------+-----------------------------
 Reporter:  bilgilabs     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.3.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 in wp-includes/user.php ''line 1752''

 {{{#!php
         $meta['show_admin_bar_front'] = empty(
 $userdata['show_admin_bar_front'] ) ? 'true' :
 $userdata['show_admin_bar_front'];
 }}}

 with this expression it seems to me that setting ''show_admin_bar_front''
 to false is impossible. it should be

 {{{#!php
         $meta['show_admin_bar_front'] = !isset(
 $userdata['show_admin_bar_front'] ) ? 'true' :
 $userdata['show_admin_bar_front'];
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49087>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list