WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r4658 r5139  
    8686                'total' => ceil($this->total_users_for_query / $this->users_per_page),
    8787                'current' => $this->page,
    88                 'prev_text' => '« Previous Page',
    89                 'next_text' => 'Next Page »',
     88                'prev_text' => __('« Previous Page'),
     89                'next_text' => __('Next Page »'),
    9090                'base' => 'users.php?%_%',
    9191                'format' => 'userspage=%#%',
     
    339339
    340340    <form action="" method="get" name="search" id="search">
    341         <p><input type="text" name="usersearch" id="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" /> <input type="submit" value="<?php _e('Search   users &raquo;'); ?>" class="button" /></p>
     341        <p><input type="text" name="usersearch" id="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" /> <input type="submit" value="<?php _e('Search Users &raquo;'); ?>" class="button" /></p>
    342342    </form>
    343343
     
    451451<div class="narrow">
    452452
    453 <?php echo '<p>'.sprintf(__('Users can <a href="%1$s">register themselves</a> or you can manually create users here.'), get_option('siteurl').'/wp-register.php').'</p>'; ?>
     453<?php
     454    if ( get_option('users_can_register') )
     455        echo '<p>' . sprintf(__('Users can <a href="%1$s">register themselves</a> or you can manually create users here.'), get_option('siteurl').'/wp-register.php') . '</p>';
     456    else
     457        echo '<p>' . sprintf(__('Users cannot currently <a href="%1$s">register themselves</a>, but you can manually create users here.'), get_option('siteurl').'/wp-admin/options-general.php#users_can_register') . '</p>';
     458?>
    454459<form action="#add-new-user" method="post" name="adduser" id="adduser">
    455460<?php wp_nonce_field('add-user') ?>
Note: See TracChangeset for help on using the changeset viewer.