Allow modified, fixes #1651

git-svn-id: https://develop.svn.wordpress.org/trunk@3080 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-11-14 10:12:22 +00:00
parent 3e46dabd03
commit 5f7471444a
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']);