Ticket #2598: 2598-2.patch
File 2598-2.patch, 1.2 KB (added by , 15 years ago) |
---|
-
bp-themes/bp-default/functions.php
263 263 } 264 264 add_action( 'wp_footer', 'bp_dtheme_js_terms' ); 265 265 266 function mmy_page_title( $title, $b ) { 267 global $bp; 268 269 if ( $bp->current_action == 'forum' && $bp->action_variables[0] == 'topic' ) { 270 $topic_title = bp_get_the_topic_title(); 271 $title .= ' | ' . $topic_title; 272 } 273 274 return $title; 275 } 276 add_filter( 'bp_page_title', 'mmy_page_title', 10, 2 ); 277 266 278 ?> 279 No newline at end of file -
bp-forums/bp-forums-filters.php
88 88 return "<a $text rel=\"nofollow\">"; 89 89 } 90 90 91 function bp_forums_add_forum_topic_to_page_title( $title ) { 92 global $bp; 93 94 if ( $bp->current_action == 'forum' && $bp->action_variables[0] == 'topic' ) { 95 if ( bp_has_forum_topic_posts() ) 96 $title .= ' | ' . bp_get_the_topic_title(); 97 } 98 return $title; 99 } 100 add_filter( 'bp_page_title', 'bp_forums_add_forum_topic_to_page_title' ); 101 102 91 103 ?> 104 No newline at end of file