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: |
|
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?
Note: See
TracTickets for help on using
tickets.
Thanks for the report!
I checked the current
masterbranch and it looks like thethe_titlefilterin
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!