Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#12888 closed defect (bug) (fixed)

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

Reported by: ocean90's profile ocean90 Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Users Keywords: has-patch
Focuses: multisite 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 15 years ago.

Download all attachments as: .zip

Change History (2)

@ocean90
15 years ago

#1 @ryan
15 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.