Ticket #14756: 14756.2.diff
File 14756.2.diff, 2.5 KB (added by , 14 years ago) |
---|
-
wp-admin/network/site-users.php
217 217 218 218 <?php do_action( 'network_site_users_after_list_table', '' );?> 219 219 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> 223 233 <form action="site-users.php?action=adduser" id="adduser" method="post"> 224 234 <?php wp_nonce_field( 'edit-site' ); ?> 225 235 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> … … 247 257 </form> 248 258 <?php endif; ?> 249 259 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> 253 262 <form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post"> 254 263 <?php wp_nonce_field( 'edit-site' ); ?> 255 264 <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> … … 280 289 </tr> 281 290 </table> 282 291 <?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' ); ?> 284 293 </form> 285 294 </div> 286 295 <?php endif; ?>