Make WordPress Core


Ignore:
Timestamp:
01/29/2008 06:48:38 PM (17 years ago)
Author:
westi
Message:

Switch from abs(intval()) to absint(). See #4762.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r6653 r6682  
    11971197        // Paging
    11981198        if ( empty($q['nopaging']) && !$this->is_singular ) {
    1199             $page = abs(intval($q['paged']));
     1199            $page = absint($q['paged']);
    12001200            if (empty($page)) {
    12011201                $page = 1;
     
    12071207                $limits = 'LIMIT '.$pgstrt.$q['posts_per_page'];
    12081208            } else { // we're ignoring $page and using 'offset'
    1209                 $q['offset'] = abs(intval($q['offset']));
     1209                $q['offset'] = absint($q['offset']);
    12101210                $pgstrt = $q['offset'] . ', ';
    12111211                $limits = 'LIMIT ' . $pgstrt . $q['posts_per_page'];
Note: See TracChangeset for help on using the changeset viewer.