#749 closed enhancement (fixed)
need bp_get_page_title()
Reported by: | DJPaul | Owned by: | |
---|---|---|---|
Milestone: | Priority: | minor | |
Severity: | Version: | 1.0 | |
Component: | Keywords: | ||
Cc: | djpaul@… |
Description
bp_page_title() echoes as most people want to use it in the page <title>.
However, I want to use the title string elsewhere; there's no bp_get_page_title() that returns the link rather than echoes it.
Considering DRY, I don't want to create my own copy of the function, so at the moment, I'm forced to using:-
ob_start(); bp_page_title(); $title = attribute_escape( ob_get_contents() ); ob_end_clean();
Change History (2)
Note: See
TracTickets for help on using
tickets.
bp_get_page_title() was added in a recent revision.