absint paged
git-svn-id: http://svn.automattic.com/wordpress/trunk@11606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f978e54cd9
commit
ddad3fa4a5
|
@ -1234,6 +1234,7 @@ class WP_Query {
|
|||
$qv['day'] = absint($qv['day']);
|
||||
$qv['w'] = absint($qv['w']);
|
||||
$qv['m'] = absint($qv['m']);
|
||||
$qv['paged'] = absint($qv['paged']);
|
||||
$qv['cat'] = preg_replace( '|[^0-9,-]|', '', $qv['cat'] ); // comma separated list of positive or negative integers
|
||||
$qv['pagename'] = trim( $qv['pagename'] );
|
||||
$qv['name'] = trim( $qv['name'] );
|
||||
|
|
Loading…
Reference in New Issue