Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/07/2020 07:23:00 PM (5 years ago)
Author:
r-a-y
Message:

Do not use sanitize_file_name() when passing integer values.

Fixes an array offset notice due to the addition of seems_utf8() in
sanitize_file_name() for WordPress 5.4.1:
https://core.trac.wordpress.org/changeset/47643

Props mercime, r-a-y.

Fixes #8288.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php

    r12595 r12647  
    941941    if ( ! isset( $bp_nouveau->groups->current_group_hierarchy ) ) {
    942942        $bp_nouveau->groups->current_group_hierarchy = array(
    943             'groups/single/%s-id-' . sanitize_file_name( $current_group->id ) . '.php',
     943            'groups/single/%s-id-' . (int) $current_group->id                    . '.php',
    944944            'groups/single/%s-slug-' . sanitize_file_name( $current_group->slug ) . '.php',
    945945        );
Note: See TracChangeset for help on using the changeset viewer.