Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/04/2015 02:47:19 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Move intval() call to outside of comparison in bp_sanitize_pagination_arg(). Props thebrandonallen. See #5796.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r9410 r9426  
    290290                // @see https://buddypress.trac.wordpress.org/ticket/5796
    291291                if ( $int ) {
    292                         $page = intval( $int );
     292                        $page = $int;
    293293                }
    294294        }
    295295
    296         return $page;
     296        return intval( $page );
    297297}
    298298
Note: See TracChangeset for help on using the changeset viewer.