Add set method.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
65950b5a8d
commit
01b7f5aaf4
|
@ -195,6 +195,10 @@ class WP_Query {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function set($query_var, $value) {
|
||||||
|
$this->query_vars[$query_var] = $value;
|
||||||
|
}
|
||||||
|
|
||||||
function get_posts() {
|
function get_posts() {
|
||||||
global $wpdb, $pagenow, $request, $user_ID;
|
global $wpdb, $pagenow, $request, $user_ID;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue