Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#749 closed enhancement (fixed)

need bp_get_page_title()

Reported by: djpaul's profile 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)

#1 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

bp_get_page_title() was added in a recent revision.

#2 @(none)
15 years ago

  • Milestone Core 1.1 deleted

Milestone Core 1.1 deleted

Note: See TracTickets for help on using tickets.