summaryrefslogtreecommitdiffstats
path: root/wp-admin/users.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-08-28 16:49:23 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-08-28 16:49:23 +0000
commit4b1b18bae5c503840c4a3d4474721112b147baca (patch)
treee62397c50bb002c132a4845742ce5027b79a870e /wp-admin/users.php
parentfe841cb4460abc8661462a58908cfc363c0e73e7 (diff)
downloadwordpress-mu-4b1b18bae5c503840c4a3d4474721112b147baca.tar.gz
wordpress-mu-4b1b18bae5c503840c4a3d4474721112b147baca.tar.xz
wordpress-mu-4b1b18bae5c503840c4a3d4474721112b147baca.zip
Always return an array (fixes #124)
Filter input git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@727 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/users.php')
-rw-r--r--wp-admin/users.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-admin/users.php b/wp-admin/users.php
index ffcedef..8f61d45 100644
--- a/wp-admin/users.php
+++ b/wp-admin/users.php
@@ -97,7 +97,7 @@ class WP_User_Search {
}
function get_results() {
- return $this->results;
+ return (array) $this->results;
}
function page_links() {
@@ -451,13 +451,13 @@ default:
<div class="wrap">
<?php if ( $wp_user_search->is_search() ) : ?>
- <h2><?php printf(__('Users Matching "%s" by Role'), $wp_user_search->search_term); ?></h2>
+ <h2><?php printf(__('Users Matching "%s" by Role'), wp_specialchars($wp_user_search->search_term)); ?></h2>
<?php else : ?>
<h2><?php _e('User List by Role'); ?></h2>
<?php endif; ?>
<form action="" method="get" name="search" id="search">
- <p><input type="text" name="usersearch" id="usersearch" value="<?php echo wp_specialchars($wp_user_search->search_term); ?>" /> <input type="submit" value="<?php _e('Search for users &raquo;'); ?>" /></p>
+ <p><input type="text" name="usersearch" id="usersearch" value="<?php echo wp_specialchars($wp_user_search->search_term, 1); ?>" /> <input type="submit" value="<?php _e('Search for users &raquo;'); ?>" /></p>
</form>
<?php if ( is_wp_error( $wp_user_search->search_errors ) ) : ?>
@@ -553,7 +553,7 @@ foreach ( (array) $roleclass as $user_object ) {
<div class="wrap">
<h2><?php _e('Add User From Community') ?></h2>
<form action="" method="post" name="adduser" id="adduser">
- <?php wp_nonce_field('add-user') ?>
+<?php wp_nonce_field('add-user') ?>
<input type='hidden' name='action' value='addexistinguser'>
<p><?php _e('Type the e-mail address of another user to add them to your blog.')?></p>
<table>