Allow modified, fixes #1651

git-svn-id: http://svn.automattic.com/wordpress/trunk@3080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-11-14 10:12:22 +00:00
parent 8d1cfdb434
commit 886de0616c
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ class WP_Query {
$q['orderby']='date '.$q['order'];
} else {
// Used to filter values
$allowed_keys = array('author','date','category','title');
$allowed_keys = array('author', 'date', 'category', 'title', 'modified');
$q['orderby'] = urldecode($q['orderby']);
$q['orderby'] = addslashes_gpc($q['orderby']);
$orderby_array = explode(' ',$q['orderby']);