Skip to:
Content

bbPress.org

Changeset 7363


Ignore:
Timestamp:
11/17/2025 12:30:54 AM (4 weeks ago)
Author:
johnjamesjacoby
Message:

Theme Compatibility: Make sure topic archive titles use the WordPress Page title, if one exists.

This commit modifies bbp_template_include_theme_compat() to use the existing $new_title variable logic instead of the hard-coded Topic Archive title, allowing for the Page title to take its place.

Props rollybueno.

In trunk, for 2.7.

Fixes #3604.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/theme-compat.php

    r7360 r7363  
    642642        // ...or use the existing page title?
    643643        } else {
    644             $new_title = apply_filters( 'the_title',   $page->post_title  );
     644            $new_title = apply_filters( 'the_title', $page->post_title, $page->ID );
    645645        }
    646646
     
    648648        bbp_theme_compat_reset_post( array(
    649649            'ID'             => ! empty( $page->ID ) ? $page->ID : 0,
    650             'post_title'     => bbp_get_topic_archive_title(),
     650            'post_title'     => $new_title,
    651651            'post_author'    => 0,
    652652            'post_date'      => bbp_get_empty_datetime(),
Note: See TracChangeset for help on using the changeset viewer.