Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/02/2021 02:43:16 AM (5 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat: pass $page->ID into the_title filter inside bbp_template_include_theme_compat().

This commit fixes potential PHP notices and third-party plugin compatibility issues (specifically with MemberPress, but could be anything really) and ensures that the the_title filter parameters match what WordPress itself includes.

In trunk for 2.7.0. See #3415.

Props lyndseyh.

File:
1 edited

Legend:

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

    r7099 r7167  
    569569        // ...or use the existing page title?
    570570        } else {
    571             $new_title = apply_filters( 'the_title',   $page->post_title  );
     571            $new_title = apply_filters( 'the_title', $page->post_title, $page->ID );
    572572        }
    573573
Note: See TracChangeset for help on using the changeset viewer.