Ticket #14756: 14756.3.diff
File 14756.3.diff, 2.2 KB (added by , 14 years ago) |
---|
-
wp-admin/network/site-users.php
218 218 <?php do_action( 'network_site_users_after_list_table', '' );?> 219 219 220 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> 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> 223 228 <form action="site-users.php?action=adduser" id="adduser" method="post"> 224 229 <?php wp_nonce_field( 'edit-site' ); ?> 225 230 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> … … 247 252 </form> 248 253 <?php endif; ?> 249 254 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> 253 257 <form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post"> 254 258 <?php wp_nonce_field( 'edit-site' ); ?> 255 259 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> … … 280 284 </tr> 281 285 </table> 282 286 <?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' ); ?> 284 288 </form> 285 289 </div> 286 290 <?php endif; ?>