mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
git-svn-id: https://develop.svn.wordpress.org/trunk@19687 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -153,7 +153,7 @@ function wp_authenticate_cookie($user, $username, $password) {
|
||||
function count_user_posts($userid) {
|
||||
global $wpdb;
|
||||
|
||||
$where = get_posts_by_author_sql('post', TRUE, $userid);
|
||||
$where = get_posts_by_author_sql('post', true, $userid);
|
||||
|
||||
$count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts $where" );
|
||||
|
||||
@@ -853,7 +853,7 @@ function count_users($strategy = 'time') {
|
||||
// Build a CPU-intensive query that will return concise information.
|
||||
$select_count = array();
|
||||
foreach ( $avail_roles as $this_role => $name ) {
|
||||
$select_count[] = "COUNT(NULLIF(`meta_value` LIKE '%" . like_escape($this_role) . "%', FALSE))";
|
||||
$select_count[] = "COUNT(NULLIF(`meta_value` LIKE '%" . like_escape($this_role) . "%', false))";
|
||||
}
|
||||
$select_count = implode(', ', $select_count);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user