[buddypress-trac] [BuddyPress Trac] #9286: bp_get_blog_latest_post not applying filters properly
buddypress-trac
noreply at wordpress.org
Wed Jun 4 03:10:07 UTC 2025
#9286: bp_get_blog_latest_post not applying filters properly
--------------------------+------------------------------
Reporter: shawfactor | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Changes (by prbot):
* keywords: => has-patch
Comment:
''This ticket was mentioned in
[https://github.com/buddypress/buddypress/pull/411 PR #411] on
[https://github.com/buddypress/buddypress/ buddypress/buddypress] by
[https://profiles.wordpress.org/rollybueno/ @rollybueno].''
Reported on https://buddypress.trac.wordpress.org/ticket/9286, the
bp_get_blog_latest_post() will be using the_title filters but only
provided 1 out of 2 **required** params
The patch includes creating new function called
bp_get_blog_latest_post_id() which is just a copy of
bp_get_blog_latest_post_title(), except it will return latest post ID
instead of title.
Then we use this for the required param on the_title filters as per
documentation: https://developer.wordpress.org/reference/hooks/the_title/
Ticket: https://buddypress.trac.wordpress.org/ticket/9286
Filter docs: https://developer.wordpress.org/reference/hooks/the_title/
Trac ticket: https://buddypress.trac.wordpress.org/ticket/9286
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9286#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list