Skip to:
Content

BuddyPress.org

Changeset 11668


Ignore:
Timestamp:
08/04/2017 05:52:09 PM (7 years ago)
Author:
r-a-y
Message:

Blogs: Ensure offset in bp_blogs_record_existing_blogs() is integer-typecasted.

After r11660, fixes issues with multisite tests failing in PHP 7.1

Props thebrandonallen.

Fixes #7579.

File:
1 edited

Legend:

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

    r11447 r11668  
    101101    // Query for all sites in network.
    102102    $r = bp_parse_args( $args, array(
    103         'offset'   => false === bp_get_option( '_bp_record_blogs_offset' ) ? 0 : bp_get_option( '_bp_record_blogs_offset' ),
     103        'offset'   => (int) bp_get_option( '_bp_record_blogs_offset' ),
    104104        'limit'    => 50,
    105105        'blog_ids' => array(),
Note: See TracChangeset for help on using the changeset viewer.