Changeset 19687 for trunk/wp-includes/user.php
- Timestamp:
- 01/05/2012 08:50:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/user.php
r19684 r19687 154 154 global $wpdb; 155 155 156 $where = get_posts_by_author_sql('post', TRUE, $userid);156 $where = get_posts_by_author_sql('post', true, $userid); 157 157 158 158 $count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts $where" ); … … 854 854 $select_count = array(); 855 855 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))"; 857 857 } 858 858 $select_count = implode(', ', $select_count);
Note: See TracChangeset
for help on using the changeset viewer.