Ticket #14756: better-buttons.diff
File better-buttons.diff, 1.6 KB (added by , 14 years ago) |
---|
-
wp-admin/user-new.php
### Eclipse Workspace Patch 1.0 #P multisite.domain
182 182 ?> 183 183 <div class="wrap"> 184 184 <?php screen_icon(); ?> 185 <h2 id="add-new-user"><?php _e('Add New User') ?></h2> 185 <h2 id="add-new-user"> <?php 186 if ( current_user_can( 'create_users' ) ) { 187 echo _e('Add New User', 'user'); 188 } elseif ( current_user_can( 'promote_users' ) ) { 189 echo _e('Add Existing User', 'user'); 190 } ?> 191 </h2> 186 192 187 193 <?php if ( isset($errors) && is_wp_error( $errors ) ) : ?> 188 194 <div class="error"> -
wp-admin/users.php
343 343 344 344 <div class="wrap"> 345 345 <?php screen_icon(); ?> 346 <h2><?php echo esc_html( $title ); if ( current_user_can( 'create_users' ) || current_user_can( 'promote_users' ) ) { ?> <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'user'); ?></a><?php } 346 <h2> 347 <?php 348 echo esc_html( $title ); 349 if ( current_user_can( 'create_users' )) { ?> 350 <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New User', 'user'); ?></a> 351 <?php } elseif ( current_user_can( 'promote_users' ) ) { ?> 352 <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x('Add Existing User', 'user'); ?></a> 353 <?php } 354 347 355 if ( $usersearch ) 348 356 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?> 349 357 </h2>