WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/01/2010 08:12:56 AM (12 years ago)
Author:
dd32
Message:

Revert [12908]. Update Users cap to use a capability. See #12098. Props nacin

File:
1 edited

Legend:

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

    r12753 r12916  
    255255<div class="wrap">
    256256<?php screen_icon(); ?>
    257 <h2><?php echo esc_html( $title ); if ( !is_multisite() || get_site_option( 'add_new_users' ) ) { ?>  <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'user'); ?></a><?php }
     257<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 }
    258258if ( isset($_GET['usersearch']) && $_GET['usersearch'] )
    259259    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $_GET['usersearch'] ) ); ?>
Note: See TracChangeset for help on using the changeset viewer.