Skip to:
Content

BuddyPress.org

Changeset 11299


Ignore:
Timestamp:
12/15/2016 03:18:58 AM (8 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.

Location:
trunk/src/bp-groups
Files:
2 edited

Legend:

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

    r11091 r11299  
    6161
    6262// Escape output of new group creation details.
    63 add_filter( 'bp_get_new_group_id',          'esc_attr'     );
    6463add_filter( 'bp_get_new_group_name',        'esc_attr'     );
    6564add_filter( 'bp_get_new_group_description', 'esc_textarea' );
  • 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.