Make WordPress Core


Ignore:
Timestamp:
12/19/2010 10:27:30 PM (13 years ago)
Author:
westi
Message:

Improve the button and header test to give a clearer picture between Adding New Users and Adding Exiting Users to a site. Fixes #14756

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-new.php

    r17049 r17069  
    183183<div class="wrap">
    184184<?php screen_icon(); ?>
    185 <h2 id="add-new-user"><?php _e('Add New User') ?></h2>
     185<h2 id="add-new-user"> <?php
     186if ( current_user_can( 'create_users' ) ) {
     187    echo _x( 'Add New User', 'user' );
     188} elseif ( current_user_can( 'promote_users' ) ) {
     189    echo _x( 'Add Existing User', 'user' );
     190} ?>
     191</h2>
    186192
    187193<?php if ( isset($errors) && is_wp_error( $errors ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.