Skip to:
Content

BuddyPress.org

Opened 6 weeks ago

Last modified 6 weeks ago

#9317 new defect (bug)

the_title filter in bp-blogs-template.php is missing an argument

Reported by: shawfactor's profile shawfactor Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Core Keywords:
Cc:

Description

Line 763 of buddypress/bp-blogs/bp-blogs-template.php

does this:

apply_filters( 'the_title', $retval )

but its also requires the $post_id as an argument, please see

https://developer.wordpress.org/reference/hooks/the_title/

Can this please be fixed asap?

Change History (1)

#1 @manhphucofficial
6 weeks ago

Thanks for the report!

I checked the current master branch and it looks like the the_title filter
in bp_get_blog_latest_post() is already passing the second argument
($post_id), e.g. apply_filters( 'the_title', $retval, $post_id ).

Could you let us know which BuddyPress version or specific revision you’re seeing
this on? If it’s from an older release, we can look into whether a backport is
needed. Otherwise, it may already be resolved in master.

Thanks again for flagging this!

Note: See TracTickets for help on using tickets.