[wp-trac] [WordPress Trac] #39252: Admin Bar shows "Add User" link to users without 'create_users' cap

WordPress Trac noreply at wordpress.org
Sun May 7 17:42:46 UTC 2017


#39252: Admin Bar shows "Add User" link to users without 'create_users' cap
--------------------------------------+--------------------------
 Reporter:  dlh                       |       Owner:  johnbillion
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.8
Component:  Users                     |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------

Comment (by johnbillion):

 @dlh Thanks again for the patch. FYI I tweaked those tests a little so
 they use the `get_standard_admin_bar()` method instead of calling the
 admin menu bar population functions manually.

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


More information about the wp-trac mailing list