[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 Jan 18 10:21:00 UTC 2020


#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:  has-patch     |     Focuses:  docs
--------------------------+-----------------------------

Comment (by bilgilabs):

 hello

 it's probably a good idea to only make the document clear. the line should
 say something like

  *     @type string $show_admin_bar_front Whether to display the Admin Bar
 for the user on the site's front end. Default 'true' (string literal not
 boolean or otherwise), or empty, or no parameter enables it, only 'false'
 (string literal not boolean or otherwise) disables it.



 Replying to [comment:4 audrasjb]:
 > Hi,
 >
 > There may be some backward compatibility issues if we decide to
 transform it into a real boolean. I propose to update the documentation to
 make it clear this parameter accepts only `'false'` or `'true'`.
 >
 > In `49087.diff`: Docs: improve `show_admin_bar_front ` parameter
 documentation for `wp_insert_user()`

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


More information about the wp-trac mailing list