Changeset 25497
- Timestamp:
- 09/19/2013 04:05:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r25486 r25497 167 167 * @since MU 168 168 * 169 * @param int $id UserID of the user about to be deleted from the network.169 * @param int $id ID of the user about to be deleted from the network. 170 170 */ 171 171 do_action( 'wpmu_delete_user', $id ); … … 208 208 * @since 2.8.0 209 209 * 210 * @param int $id UserID of the user that was deleted from the network.210 * @param int $id ID of the user that was deleted from the network. 211 211 */ 212 212 do_action( 'deleted_user', $id ); … … 452 452 * @since 3.0.0 453 453 * 454 * @param int $id UserID of the user marked as SPAM.454 * @param int $id ID of the user marked as SPAM. 455 455 */ 456 456 do_action( 'make_spam_user', $id ); … … 461 461 * @since 3.0.0 462 462 * 463 * @param int $id UserID of the user marked as HAM.463 * @param int $id ID of the user marked as HAM. 464 464 */ 465 465 do_action( 'make_ham_user', $id ); … … 695 695 696 696 /** 697 * Grants super admin privileges.697 * Grants Super Admin privileges. 698 698 * 699 699 * @since 3.0.0 700 * @param int $user_id 700 * @param int $user_id ID of the user to be granted Super Admin privileges. 701 701 */ 702 702 function grant_super_admin( $user_id ) { … … 704 704 705 705 // If global super_admins override is defined, there is nothing to do here. 706 if ( isset( $super_admins) )706 if ( isset( $super_admins ) ) 707 707 return false; 708 708 … … 712 712 * @since 3.0.0 713 713 * 714 * @param int $user_id UserID of the user that is about to be granted Super Admin privileges.714 * @param int $user_id ID of the user that is about to be granted Super Admin privileges. 715 715 */ 716 716 do_action( 'grant_super_admin', $user_id ); … … 729 729 * @since 3.0.0 730 730 * 731 * @param int $user_id UserID of the user that was granted Super Admin privileges.731 * @param int $user_id ID of the user that was granted Super Admin privileges. 732 732 */ 733 733 do_action( 'granted_super_admin', $user_id ); … … 738 738 739 739 /** 740 * Revokes super admin privileges.740 * Revokes Super Admin privileges. 741 741 * 742 742 * @since 3.0.0 743 * @param int $user_id 743 * @param int $user_id ID of the user Super Admin privileges to be revoked from. 744 744 */ 745 745 function revoke_super_admin( $user_id ) { … … 747 747 748 748 // If global super_admins override is defined, there is nothing to do here. 749 if ( isset( $super_admins) )749 if ( isset( $super_admins ) ) 750 750 return false; 751 751 752 /** 752 753 * Fires before the user's Super Admin privileges are revoked. … … 754 755 * @since 3.0.0 755 756 * 756 * @param int $user_id UserID of the user Super Admin privileges are being revoked from.757 * @param int $user_id ID of the user Super Admin privileges are being revoked from. 757 758 */ 758 759 do_action( 'revoke_super_admin', $user_id ); … … 772 773 * @since 3.0.0 773 774 * 774 * @param int $user_id UserID of the user Super Admin privileges were revoked from.775 * @param int $user_id ID of the user Super Admin privileges were revoked from. 775 776 */ 776 777 do_action( 'revoked_super_admin', $user_id ); … … 792 793 global $wpdb; 793 794 794 if ( $site_id == $wpdb->siteid )795 if ( $site_id == $wpdb->siteid ) 795 796 $result = true; 796 797 else 797 798 $result = false; 799 798 800 /** 799 801 * Filter whether this network can be edited from this page.
Note: See TracChangeset
for help on using the changeset viewer.