mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Allow modified, fixes #1651
git-svn-id: https://develop.svn.wordpress.org/trunk@3080 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user