Changeset 13680
- Timestamp:
- 03/12/2010 12:03:44 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/users.php
r13617 r13680 371 371 372 372 $style = ( ' class="alternate"' == $style ) ? '' : ' class="alternate"'; 373 echo "\n\t", user_row( $user_object, $style, $role, isset( $post_counts[ $userid ] ) ? $post_counts[ $userid ] : 0);373 echo "\n\t", user_row( $user_object, $style, $role, $post_counts[ $userid ] ); 374 374 } 375 375 ?> -
trunk/wp-includes/user.php
r13667 r13680 170 170 171 171 $count = array(); 172 if ( ! count( $users ) )172 if ( ! is_array($users) || empty( $users ) ) 173 173 return $count; 174 174 … … 177 177 178 178 $result = $wpdb->get_results( "SELECT post_author, COUNT(*) FROM $wpdb->posts $where AND post_author IN ($userlist) GROUP BY post_author", ARRAY_N ); 179 180 if ( ! $result )181 return $count;182 183 179 foreach ( $result as $row ) { 184 180 $count[ $row[0] ] = $row[1];
Note: See TracChangeset
for help on using the changeset viewer.