Make WordPress Core

Ticket #25497: site-users.php.patch

File site-users.php.patch, 1.2 KB (added by sboisvert, 12 years ago)
  • site-users.php

     
    164164$parent_file = 'sites.php';
    165165$submenu_file = 'sites.php';
    166166
     167/**
     168 * Disable showing add existing user form
     169 *
     170 * @since 3.1.0
     171 *
     172 * @param  bool true
     173 */
    167174if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) )
    168175        wp_enqueue_script( 'user-suggest' );
    169176
     
    243250
    244251</form>
    245252
    246 <?php do_action( 'network_site_users_after_list_table', '' );?>
     253<?php
    247254
    248 <?php if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
     255/**
     256 * Fires after the listing of users table on the network admin
     257 *
     258 * @since 3.1.0
     259 *
     260 */
     261do_action( 'network_site_users_after_list_table', '' );?>
     262
     263<?php
     264//duplicate_hook
     265if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
    249266<h3 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h3>
    250267<form action="site-users.php?action=adduser" id="adduser" method="post">
    251268        <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />