Make WordPress Core


Ignore:
Timestamp:
01/05/2012 08:50:54 PM (13 years ago)
Author:
ryan
Message:

User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r19684 r19687  
    154154    global $wpdb;
    155155
    156     $where = get_posts_by_author_sql('post', TRUE, $userid);
     156    $where = get_posts_by_author_sql('post', true, $userid);
    157157
    158158    $count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts $where" );
     
    854854        $select_count = array();
    855855        foreach ( $avail_roles as $this_role => $name ) {
    856             $select_count[] = "COUNT(NULLIF(`meta_value` LIKE '%" . like_escape($this_role) . "%', FALSE))";
     856            $select_count[] = "COUNT(NULLIF(`meta_value` LIKE '%" . like_escape($this_role) . "%', false))";
    857857        }
    858858        $select_count = implode(', ', $select_count);
Note: See TracChangeset for help on using the changeset viewer.