mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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'];
|
$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…
x
Reference in New Issue
Block a user