[buddypress-trac] [BuddyPress] #2598: Forum topic title should be included in bp_get_page_title()
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Wed Aug 25 00:30:30 UTC 2010
#2598: Forum topic title should be included in bp_get_page_title()
--------------------+-------------------------------------------------------
Reporter: r-a-y | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.2.6
Component: Forums | Keywords:
--------------------+-------------------------------------------------------
Changes (by boonebgorges):
* component: Core => Forums
Comment:
Boy, nothing comes easy, does it?
That code doesn't work anymore as written. Something changed around
1.2.3ish so that the $forum_template global is no longer populated around
the time when BP is creating the page title. (I seem to remember some
priorities changing around that time, anyway.) That means that
bp_get_the_topic_title() was returning empty.
The attached patch takes a different swing at things, by putting some
information about the current topic into the $bp global. It's not ideal,
because it requires pulling up the topic an extra time, and because it
relies on a bbPress function call. But it's more efficient (probably) then
calling up the entire $forum_template twice, at least.
--
Ticket URL: <http://trac.buddypress.org/ticket/2598#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list