Make WordPress Core

Ticket #14756: 14756.3.diff

File 14756.3.diff, 2.2 KB (added by PeteMall, 14 years ago)
  • wp-admin/network/site-users.php

     
    218218<?php do_action( 'network_site_users_after_list_table', '' );?>
    219219
    220220<?php if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
    221 <h3 id="add-existing-user"><?php _e('Add Existing User') ?></h3>
    222 <p><?php _e( 'Enter the username of an existing user on this network.' ) ?></p>
     221<h4 id="add-user"><?php _e('Add User to This Site') ?></h4>
     222        <?php if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
     223<p><?php _e( 'You may add from existing network users, or set up a new user to add to this site.' ); ?></p>
     224        <?php else : ?>
     225<p><?php _e( 'You may add from existing network users to this site.' ); ?></p>
     226        <?php endif; ?>
     227<h5 id="add-existing-user"><?php _e('Add Existing User') ?></h5>
    223228<form action="site-users.php?action=adduser" id="adduser" method="post">
    224229        <?php wp_nonce_field( 'edit-site' ); ?>
    225230        <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
     
    247252</form>
    248253<?php endif; ?>
    249254
    250 <?php if (  current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
    251 <h3 id="add-new-user"><?php _e('Create New User') ?></h3>
    252 <p><?php _e( 'Create a brand new user and add it to this site.' ) ?></p>
     255<?php if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
     256<h5 id="add-new-user"><?php _e('Add New User') ?></h5>
    253257<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
    254258        <?php wp_nonce_field( 'edit-site' ); ?>
    255259        <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
     
    280284                </tr>
    281285        </table>
    282286        <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
    283         <?php submit_button( __('Add User'), 'primary', 'add-user' ); ?>
     287        <?php submit_button( __('Add New User'), 'primary', 'add-user' ); ?>
    284288</form>
    285289</div>
    286290<?php endif; ?>