Opened 3 years ago

Closed 3 years ago

#12888 closed defect (bug) (fixed)

Use is_super_admin() instead of is_site_admin() in user.php

Reported by: ocean90 Owned by:
Priority: normal Milestone: 3.0
Component: Users Version: 3.0
Severity: normal Keywords: multisite, has-patch
Cc:

Description

If you want to edit a user:

Notice: is_site_admin is deprecated since version 3.0! Use is_super_admin() instead.

Notice: get_current_user_id is deprecated since version 3.0! Use $GLOBALS'current_user']->ID instead.

Attachments (1)

12888.patch (1.4 KB) - added by ocean90 3 years ago.

Download all attachments as: .zip

Change History (2)

ocean903 years ago

comment:1   ryan3 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [14032]) User is_super_admin(). Props ocean90. fixes #12888

Note: See TracTickets for help on using tickets.