Ticket #2384: if_authors_is_array_test.patch
File if_authors_is_array_test.patch, 608 bytes (added by , 19 years ago) |
---|
-
wp-includes/template-functions-author.php
178 178 global $wpdb; 179 179 $query = "SELECT ID, user_nicename from $wpdb->users " . ($exclude_admin ? "WHERE user_login <> 'admin' " : '') . "ORDER BY display_name"; 180 180 $authors = $wpdb->get_results($query); 181 182 if ( !is_array($authors) ) 183 return false; 181 184 182 185 foreach ( $authors as $author ) { 183 186 $author = get_userdata( $author->ID );