Changeset 35707 for trunk/src/wp-includes/user-functions.php
- Timestamp:
- 11/19/2015 05:10:47 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/user-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user-functions.php
r35630 r35707 759 759 $select_count[] = $wpdb->prepare( "COUNT(NULLIF(`meta_value` LIKE %s, false))", '%' . $wpdb->esc_like( '"' . $this_role . '"' ) . '%'); 760 760 } 761 $select_count[] = "COUNT(NULLIF(`meta_value` = 'a:0:{}', false))"; 761 762 $select_count = implode(', ', $select_count); 762 763 … … 774 775 } 775 776 777 $role_counts['none'] = (int) $row[$col++]; 778 776 779 // Get the meta_value index from the end of the result set. 777 780 $total_users = (int) $row[$col]; 778 779 $role_counts['none'] = ( $total_users - array_sum( $role_counts ) );780 781 781 782 $result['total_users'] = $total_users;
Note: See TracChangeset
for help on using the changeset viewer.