Changeset 16183 for trunk/wp-admin/network/users.php
- Timestamp:
- 11/04/2010 04:16:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/users.php
r16175 r16183 63 63 <div class="wrap"> 64 64 <?php screen_icon(); ?> 65 <h2><?php esc_html_e( 'Users' ); ?> 66 <a href="#form-add-user" class="button add-new-h2"><?php echo esc_html_x( 'Add New' , 'users'); ?></a> 67 <?php 65 <h2><?php esc_html_e( 'Users' ); 66 if ( current_user_can( 'create_users') ) : ?> 67 <a href="<?php echo network_admin_url('user-new.php'); ?>" class="button add-new-h2"><?php echo esc_html_x( 'Add New', 'users' ); ?></a><?php 68 endif; 69 68 70 if ( !empty( $usersearch ) ) 69 71 printf( '<span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', esc_html( $usersearch ) ); … … 83 85 </div> 84 86 85 <?php 86 if ( apply_filters( 'show_adduser_fields', true ) ) : 87 ?> 88 <div class="wrap" id="form-add-user"> 89 <h3><?php _e( 'Add User' ) ?></h3> 90 <form action="edit.php?action=adduser" method="post"> 91 <table class="form-table"> 92 <tr class="form-field form-required"> 93 <th scope="row"><?php _e( 'Username' ) ?></th> 94 <td><input type="text" class="regular-text" name="user[username]" /></td> 95 </tr> 96 <tr class="form-field form-required"> 97 <th scope="row"><?php _e( 'Email' ) ?></th> 98 <td><input type="text" class="regular-text" name="user[email]" /></td> 99 </tr> 100 <tr class="form-field"> 101 <td colspan="2"><?php _e( 'Username and password will be mailed to the above email address.' ) ?></td> 102 </tr> 103 </table> 104 <p class="submit"> 105 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 106 <input class="button" type="submit" value="<?php esc_attr_e( 'Add user' ) ?>" /></p> 107 </form> 108 </div> 109 <?php endif; 110 111 require_once( '../admin-footer.php' ); ?> 87 <?php require_once( '../admin-footer.php' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.