Ticket #25229: wp-admin-includes-ms.4.diff
File wp-admin-includes-ms.4.diff, 3.5 KB (added by , 11 years ago) |
---|
-
src/wp-admin/includes/ms.php
166 166 * 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 ); 172 172 … … 207 207 * 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 ); 213 213 … … 451 451 * 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 ); 457 457 } else { … … 460 460 * 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 ); 466 466 } … … 694 694 } 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 ) { 703 703 global $super_admins; 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 709 709 /** … … 711 711 * 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 ); 717 717 … … 728 728 * 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 ); 734 734 return true; … … 737 737 } 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 ) { 746 746 global $super_admins; 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. 753 754 * 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 ); 759 760 … … 771 772 * 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 ); 777 778 return true; … … 791 792 function can_edit_network( $site_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. 800 802 *