Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/19/2011 05:29:51 PM (14 years ago)
Author:
djpaul
Message:

Rework page <title> generation to use WP's wp_title(). Fixes #2598

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/deprecated/1.3.php

    r4532 r4536  
    383383}
    384384
     385/**
     386 * Template tag version of bp_get_page_title()
     387 *
     388 * @deprecated 1.3
     389 * @deprecated Use wp_title()
     390 * @since 1.0
     391 */
     392function bp_page_title() {
     393    echo bp_get_page_title();
     394}
     395    /**
     396     * Prior to BuddyPress 1.3, this was used to generate the page's <title> text.
     397     * Now, just simply use wp_title().
     398     *
     399     * @deprecated 1.3
     400     * @deprecated Use wp_title()
     401     * @since 1.0
     402     */
     403    function bp_get_page_title() {
     404        _deprecated_function( __FUNCTION__, '1.3', 'wp_title()' );
     405        $title = wp_title( '|', false, 'right' ) . get_bloginfo( 'name', 'display' );
     406
     407        // Backpat for BP 1.2 filter
     408        $title = apply_filters( 'bp_page_title', esc_attr( $title ), esc_attr( $title ) );
     409
     410        return apply_filters( 'bp_get_page_title', $title );
     411    }
     412
     413function bp_styles() {
     414    do_action( 'bp_styles' );
     415    wp_print_styles();
     416}
    385417
    386418/** Theme *********************************************************************/
Note: See TracChangeset for help on using the changeset viewer.