Make WordPress Core


Ignore:
Timestamp:
11/12/2010 04:57:47 PM (14 years ago)
Author:
ryan
Message:

Show Add New if user can promote.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r16175 r16330  
    347347<div class="wrap">
    348348<?php screen_icon(); ?>
    349 <h2><?php echo esc_html( $title ); if ( current_user_can( 'create_users' ) ) { ?>  <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'user'); ?></a><?php }
     349<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 }
    350350if ( $usersearch )
    351351    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $usersearch ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.