Make WordPress Core

Changeset 25497


Ignore:
Timestamp:
09/19/2013 04:05:21 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Some more tweaks for the documentation in wp-admin/includes/ms.php. see #25229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r25486 r25497  
    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 );
     
    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 );
     
    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 );
     
    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 );
     
    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 ) {
     
    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   
     
    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 );
     
    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 );
     
    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 ) {
     
    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.
     
    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 );
     
    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 );
     
    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.
Note: See TracChangeset for help on using the changeset viewer.