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

WordPress Trac noreply at wordpress.org
Sun Dec 29 23:47:00 UTC 2019


#49087: impossible to set show_admin_bar_front to false in wp_insert_user
--------------------------+-----------------------------
 Reporter:  bilgilabs     |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  5.4
Component:  Users         |     Version:  5.3.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  docs
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => reviewing
 * focuses:   => docs
 * milestone:  Awaiting Review => 5.4


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the report.

 As seen in [source:tags/5.3.2/src/wp-admin/includes/user.php?marks=119
 edit_user()], the value accepts a string `'true'` or `'false'`, not a
 boolean `true` or `false`, so the code is correct as is.

 It could probably be explained better in the documentation, though.

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


More information about the wp-trac mailing list