Skip to:
Content

BuddyPress.org

Ticket #6008: 6008.patch

File 6008.patch, 2.1 KB (added by imath, 10 years ago)
  • src/bp-groups/bp-groups-screens.php

    diff --git src/bp-groups/bp-groups-screens.php src/bp-groups/bp-groups-screens.php
    index e89c72b..db903bb 100644
    class BP_Groups_Theme_Compat { 
    12201220         * @since BuddyPress (1.7.0)
    12211221         */
    12221222        public function single_dummy_post() {
     1223                $item_name = bp_get_current_group_name();
     1224
     1225                $title = apply_filters( 'bp_single_item_title', sprintf(
     1226                        '<a href="%s">%s</a>',
     1227                        bp_get_group_permalink( groups_get_current_group() ),
     1228                        $item_name
     1229                ), $item_name );
     1230
    12231231                bp_theme_compat_reset_post( array(
    12241232                        'ID'             => 0,
    1225                         'post_title'     => '<a href="' . bp_get_group_permalink( groups_get_current_group() ) . '">' . bp_get_current_group_name() . '</a>',
     1233                        'post_title'     => $title,
    12261234                        'post_author'    => 0,
    12271235                        'post_date'      => 0,
    12281236                        'post_content'   => '',
  • src/bp-members/bp-members-screens.php

    diff --git src/bp-members/bp-members-screens.php src/bp-members/bp-members-screens.php
    index 80f5565..064437a 100644
    function bp_core_screen_activation() { 
    235235
    236236        // grab the key (the old way)
    237237        $key = isset( $_GET['key'] ) ? $_GET['key'] : '';
    238  
     238
    239239        // grab the key (the new way)
    240240        if ( empty( $key ) ) {
    241241                $key = bp_current_action();
    function bp_core_screen_activation() { 
    245245        if ( empty( $key ) ) {
    246246                return;
    247247        }
    248  
     248
    249249        // Activate the signup
    250250        $user = apply_filters( 'bp_core_activate_account', bp_core_activate_signup( $key ) );
    251251
    class BP_Members_Theme_Compat { 
    423423         * @since BuddyPress (1.7.0)
    424424         */
    425425        public function single_dummy_post() {
     426                $item_name = bp_get_displayed_user_fullname();
     427
     428                $title = apply_filters( 'bp_single_item_title', sprintf(
     429                        '<a href="%s">%s</a>',
     430                        bp_get_displayed_user_link(),
     431                        $item_name
     432                ), $item_name );
     433
    426434                bp_theme_compat_reset_post( array(
    427435                        'ID'             => 0,
    428                         'post_title'     => '<a href="' . bp_get_displayed_user_link() . '">' . bp_get_displayed_user_fullname() . '</a>',
     436                        'post_title'     => $title,
    429437                        'post_author'    => 0,
    430438                        'post_date'      => 0,
    431439                        'post_content'   => '',