Switch from abs(intval()) to absint(). See #4762.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -369,7 +369,7 @@ function wp_get_archives($args = '') {
|
||||
$type = 'monthly';
|
||||
|
||||
if ( '' != $limit ) {
|
||||
$limit = abs(intval($limit));
|
||||
$limit = absint($limit);
|
||||
$limit = ' LIMIT '.$limit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user