Make WordPress Core

Ticket #14756: 14756.2.diff

File 14756.2.diff, 2.5 KB (added by PeteMall, 14 years ago)

s/Creationism/Evolution/

  • wp-admin/network/site-users.php

     
    217217
    218218<?php do_action( 'network_site_users_after_list_table', '' );?>
    219219
    220 <?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>
     220<?php if (
     221        ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) ||
     222        ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) ): ?>
     223<h3 id="add-user"><?php _e('Add User to This Site') ?></h3>
     224<?php endif; ?>
     225
     226<?php if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) :
     227        if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
     228<p><?php _e( 'You may add from existing network users, or set up a new user to add to this site.' ); ?></p>
     229        <?php else : ?>
     230<p><?php _e( 'You may add from existing network users to this site.' ); ?></p>
     231        <?php endif; ?>
     232<h4 id="add-existing-user"><?php _e('Add Existing User') ?></h3>
    223233<form action="site-users.php?action=adduser" id="adduser" method="post">
    224234        <?php wp_nonce_field( 'edit-site' ); ?>
    225235        <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
     
    247257</form>
    248258<?php endif; ?>
    249259
    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>
     260<?php if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
     261<h4 id="add-new-user"><?php _e('Add New User') ?></h3>
    253262<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
    254263        <?php wp_nonce_field( 'edit-site' ); ?>
    255264        <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
     
    280289                </tr>
    281290        </table>
    282291        <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
    283         <?php submit_button( __('Add User'), 'primary', 'add-user' ); ?>
     292        <?php submit_button( __('Add New User'), 'primary', 'add-user' ); ?>
    284293</form>
    285294</div>
    286295<?php endif; ?>