Allow modified, fixes #1651
git-svn-id: https://develop.svn.wordpress.org/trunk@3080 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3e46dabd03
commit
5f7471444a
@ -511,7 +511,7 @@ class WP_Query {
|
|||||||
$q['orderby']='date '.$q['order'];
|
$q['orderby']='date '.$q['order'];
|
||||||
} else {
|
} else {
|
||||||
// Used to filter values
|
// 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'] = urldecode($q['orderby']);
|
||||||
$q['orderby'] = addslashes_gpc($q['orderby']);
|
$q['orderby'] = addslashes_gpc($q['orderby']);
|
||||||
$orderby_array = explode(' ',$q['orderby']);
|
$orderby_array = explode(' ',$q['orderby']);
|
||||||
|
Loading…
Reference in New Issue
Block a user