Skip to:
Content

BuddyPress.org

Opened 8 months ago

Closed 8 months ago

#9067 closed defect (bug) (fixed)

Use the right block template when a BP Directory is set as home page with a Block Theme

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 12.1.0 Priority: normal
Severity: normal Version: 12.0.0
Component: Route Parser Keywords: has-patch
Cc:

Description

12.0 introduced a regression about the template used when a BP Directory is set as home page. This issue was discussed during January 8, 2024 dev-chat. Many thanks to @emaralive for his report.

Issue is: only overriding the $wp_query->is_home global is misleading these kind of themes, the $wp_query->is_front_page property also needs to be set as true.

Change History (3)

This ticket was mentioned in PR #216 on buddypress/buddypress by @imath.


8 months ago
#1

  • Keywords has-patch added; needs-patch removed

Make sure Block Themes are using the right template to display a BP Directory when it is set as the site's front page.

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9067

#2 @imath
8 months ago

In 13694:

Block Themes: use the right template when a BP Directory is front page

Only overriding the $wp_query->is_home property is misleading the template pick for these kind of themes, the $wp_query->is_front_page property also needs to be set as true.

Props emaralive

See #9067 (trunk)
Closes https://github.com/buddypress/buddypress/pull/216

#3 @imath
8 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 13695:

Block Themes: use the right template when a BP Directory is front page

Only overriding the $wp_query->is_home property is misleading the template pick for these kind of themes, the $wp_query->is_front_page property also needs to be set as true.

Props emaralive

Fixes #9067 (branch 12.0)

Note: See TracTickets for help on using tickets.