Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
56b41264
authored
2011-08-23 17:53:56 +0000
by
Marty Penner
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixing UserManager display bug: user list not filterable by role.
1 parent
cbd56e08
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
com/Auth/Auth.php
lib/UserSearch.php
tz-tools.php
com/Auth/Auth.php
View file @
56b4126
...
...
@@ -29,7 +29,7 @@ const PASS_MAX_LEN = 15; // Maximum length of password
if
(
empty
(
$wpdb
->
signups
))
{
$wpdb
->
signups
=
$wpdb
->
prefix
.
'signups'
;
}
//die(var_dump(wp_hash_password('a ')));
Vars
::
$options
=
new
Tools\WP_Option
(
OPTION_NAME
);
if
(
is_admin
())
{
...
...
lib/UserSearch.php
View file @
56b4126
...
...
@@ -85,7 +85,7 @@ class UserSearch implements ArrayAccess, Iterator, Countable {
}
// Users table
if
(
!
is_null
(
$search_users_table
))
{
if
(
!
is_null
(
$search_users_table
)
&&
empty
(
$field_match
)
)
{
if
(
!
empty
(
$having_clause
))
{
$having_clause
.=
"
\n
OR `user_id` IN (SELECT `ID` FROM `wp_users` WHERE (`user_login` LIKE '%
{
$search
}
%' OR `user_nicename` LIKE '%
{
$search
}
%'))"
;
}
...
...
tz-tools.php
View file @
56b4126
Please
register
or
sign in
to post a comment