Make WordPress Core

Changeset 25939


Ignore:
Timestamp:
10/26/2013 08:32:14 PM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/network/site-users.php.

Props sboisvert for the initial patch. Props kpdesign.
Fixes #25497.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-users.php

    r25616 r25939  
    165165$submenu_file = 'sites.php';
    166166
     167/**
     168 * Filter whether to show the Add Existing User form on the Multisite Users screen.
     169 *
     170 * @since 3.1.0
     171 *
     172 * @param bool $bool Whether to show the Add Existing User form. Default true.
     173 */
    167174if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) )
    168175    wp_enqueue_script( 'user-suggest' );
     
    244251</form>
    245252
    246 <?php do_action( 'network_site_users_after_list_table', '' );?>
    247 
    248 <?php if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
     253<?php
     254/**
     255 * Fires after the list table on the Users screen in the Multisite Network Admin.
     256 *
     257 * @since 3.1.0
     258 */
     259do_action( 'network_site_users_after_list_table' );
     260
     261/** This filter is documented in wp-admin/network/site-users.php */
     262if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
    249263<h3 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h3>
    250264<form action="site-users.php?action=adduser" id="adduser" method="post">
     
    273287<?php endif; ?>
    274288
    275 <?php if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
     289<?php
     290/**
     291 * Filter whether to show the Add New User form on the Multisite Users screen.
     292 *
     293 * @since 3.1.0
     294 *
     295 * @param bool $bool Whether to show the Add New User form. Default true.
     296 */
     297if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
    276298<h3 id="add-new-user"><?php _e( 'Add New User' ); ?></h3>
    277299<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
Note: See TracChangeset for help on using the changeset viewer.