Changeset 12647
- Timestamp:
- 05/07/2020 07:23:00 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-template.php
r12590 r12647 4359 4359 4360 4360 $template_names = array( 4361 'groups/single/front-id-' . sanitize_file_name( $group->id ). '.php',4361 'groups/single/front-id-' . (int) $group->id . '.php', 4362 4362 'groups/single/front-slug-' . sanitize_file_name( $group->slug ) . '.php', 4363 4363 ); -
trunk/src/bp-groups/classes/class-bp-groups-theme-compat.php
r11151 r12647 224 224 */ 225 225 $new_templates = apply_filters( 'bp_template_hierarchy_groups_single_item', array( 226 'groups/single/index-id-' . sanitize_file_name( bp_get_current_group_id() ). '.php',226 'groups/single/index-id-' . (int) bp_get_current_group_id() . '.php', 227 227 'groups/single/index-slug-' . sanitize_file_name( bp_get_current_group_slug() ) . '.php', 228 228 'groups/single/index-action-' . sanitize_file_name( bp_current_action() ) . '.php', -
trunk/src/bp-members/bp-members-template.php
r12591 r12647 1424 1424 // Init the hierarchy 1425 1425 $template_names = array( 1426 'members/single/front-id-' . sanitize_file_name( $displayed_user->id ). '.php',1426 'members/single/front-id-' . (int) $displayed_user->id . '.php', 1427 1427 'members/single/front-nicename-' . sanitize_file_name( $displayed_user->userdata->user_nicename ) . '.php', 1428 1428 ); -
trunk/src/bp-members/classes/class-bp-members-theme-compat.php
r11748 r12647 171 171 */ 172 172 $new_templates = apply_filters( 'bp_template_hierarchy_members_single_item', array( 173 'members/single/index-id-' . sanitize_file_name( bp_displayed_user_id() ). '.php',173 'members/single/index-id-' . (int) bp_displayed_user_id() . '.php', 174 174 'members/single/index-nicename-' . sanitize_file_name( $user_nicename ) . '.php', 175 175 'members/single/index-action-' . sanitize_file_name( bp_current_action() ) . '.php', -
trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php
r12595 r12647 941 941 if ( ! isset( $bp_nouveau->groups->current_group_hierarchy ) ) { 942 942 $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', 944 944 'groups/single/%s-slug-' . sanitize_file_name( $current_group->slug ) . '.php', 945 945 ); -
trunk/src/bp-templates/bp-nouveau/includes/members/functions.php
r12570 r12647 265 265 if ( ! isset( $bp_nouveau->members->displayed_user_hierarchy ) ) { 266 266 $bp_nouveau->members->displayed_user_hierarchy = array( 267 'members/single/%s-id-' . sanitize_file_name( $displayed_user->id ). '.php',267 'members/single/%s-id-' . (int) $displayed_user->id . '.php', 268 268 'members/single/%s-nicename-' . sanitize_file_name( $displayed_user->userdata->user_nicename ) . '.php', 269 269 );
Note: See TracChangeset
for help on using the changeset viewer.