Allow modified, fixes #1651
git-svn-id: http://svn.automattic.com/wordpress/trunk@3080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8d1cfdb434
commit
886de0616c
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue