Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/15/2016 03:18:58 AM (4 years ago)
Author:
boonebgorges
Message:

Return an integer from bp_get_new_group_id().

Sanitization techniques introduced in [7790] inadvertently caused
the value returned from this function to be a string, inconsistent
with the documentation and with previous behavior.

Fixes #7388.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r11291 r11299  
    48004800         * @param int $new_group_id ID of the new group.
    48014801         */
    4802         return apply_filters( 'bp_get_new_group_id', $new_group_id );
     4802        return (int) apply_filters( 'bp_get_new_group_id', $new_group_id );
    48034803    }
    48044804
Note: See TracChangeset for help on using the changeset viewer.