From 886de0616c9e2e498d1197d47937b08b012a0fa9 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 14 Nov 2005 10:12:22 +0000 Subject: [PATCH] Allow modified, fixes #1651 git-svn-id: http://svn.automattic.com/wordpress/trunk@3080 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 4f4a92f27b..a8333b2228 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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']);