Changeset 10992 for trunk/wp-includes/query.php
- Timestamp:
- 04/17/2009 09:25:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r10956 r10992 2005 2005 $q['author_name'] = sanitize_title($q['author_name']); 2006 2006 $q['author'] = $wpdb->get_var("SELECT ID FROM $wpdb->users WHERE user_nicename='".$q['author_name']."'"); 2007 $q['author'] = get_user_by('slug', $q['author_name']); 2008 if ( $q['author'] ) 2009 $q['author'] = $q['author']->ID; 2007 2010 $whichauthor .= " AND ($wpdb->posts.post_author = ".absint($q['author']).')'; 2008 2011 }
Note: See TracChangeset
for help on using the changeset viewer.