Make WordPress Core

Ticket #25229: wp-admin-includes-ms.4.diff

File wp-admin-includes-ms.4.diff, 3.5 KB (added by SergeyBiryukov, 11 years ago)
  • src/wp-admin/includes/ms.php

     
    166166         *
    167167         * @since MU
    168168         *
    169          * @param int $id User ID 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.
    170170         */
    171171        do_action( 'wpmu_delete_user', $id );
    172172
     
    207207         *
    208208         * @since 2.8.0
    209209         *
    210          * @param int $id User ID of the user that was deleted from the network.
     210         * @param int $id ID of the user that was deleted from the network.
    211211         */
    212212        do_action( 'deleted_user', $id );
    213213
     
    451451                         *
    452452                         * @since 3.0.0
    453453                         *
    454                          * @param int $id User ID of the user marked as SPAM.
     454                         * @param int $id ID of the user marked as SPAM.
    455455                         */
    456456                        do_action( 'make_spam_user', $id );
    457457                } else {
     
    460460                         *
    461461                         * @since 3.0.0
    462462                         *
    463                          * @param int $id User ID of the user marked as HAM.
     463                         * @param int $id ID of the user marked as HAM.
    464464                         */
    465465                        do_action( 'make_ham_user', $id );
    466466                }
     
    694694}
    695695
    696696/**
    697  * Grants super admin privileges.
     697 * Grants Super Admin privileges.
    698698 *
    699699 * @since 3.0.0
    700  * @param int $user_id
     700 * @param int $user_id ID of the user to be granted Super Admin privileges.
    701701 */
    702702function grant_super_admin( $user_id ) {
    703703        global $super_admins;
    704704
    705705        // If global super_admins override is defined, there is nothing to do here.
    706         if ( isset($super_admins) )
     706        if ( isset( $super_admins ) )
    707707                return false;
    708708       
    709709        /**
     
    711711         *
    712712         * @since 3.0.0
    713713         *
    714          * @param int $user_id User ID 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.
    715715         */
    716716        do_action( 'grant_super_admin', $user_id );
    717717
     
    728728                 *
    729729                 * @since 3.0.0
    730730                 *
    731                  * @param int $user_id User ID of the user that was granted Super Admin privileges.
     731                 * @param int $user_id ID of the user that was granted Super Admin privileges.
    732732                 */
    733733                do_action( 'granted_super_admin', $user_id );
    734734                return true;
     
    737737}
    738738
    739739/**
    740  * Revokes super admin privileges.
     740 * Revokes Super Admin privileges.
    741741 *
    742742 * @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.
    744744 */
    745745function revoke_super_admin( $user_id ) {
    746746        global $super_admins;
    747747
    748748        // If global super_admins override is defined, there is nothing to do here.
    749         if ( isset($super_admins) )
     749        if ( isset( $super_admins ) )
    750750                return false;
     751
    751752        /**
    752753         * Fires before the user's Super Admin privileges are revoked.
    753754         *
    754755         * @since 3.0.0
    755756         *
    756          * @param int $user_id User ID 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.
    757758         */
    758759        do_action( 'revoke_super_admin', $user_id );
    759760
     
    771772                         *
    772773                         * @since 3.0.0
    773774                         *
    774                          * @param int $user_id User ID of the user Super Admin privileges were revoked from.
     775                         * @param int $user_id ID of the user Super Admin privileges were revoked from.
    775776                         */
    776777                        do_action( 'revoked_super_admin', $user_id );
    777778                        return true;
     
    791792function can_edit_network( $site_id ) {
    792793        global $wpdb;
    793794
    794         if ($site_id == $wpdb->siteid )
     795        if ( $site_id == $wpdb->siteid )
    795796                $result = true;
    796797        else
    797798                $result = false;
     799
    798800        /**
    799801         * Filter whether this network can be edited from this page.
    800802         *