Ticket #5144: 5144.01.patch
File 5144.01.patch, 1.6 KB (added by , 11 years ago) |
---|
-
bp-blogs/bp-blogs-screens.php
class BP_Blogs_Theme_Compat { 192 192 public function create_dummy_post() { 193 193 194 194 // Title based on ability to create blogs 195 if ( is_user_logged_in() && bp_blog_signup_enabled() ) {195 if ( is_user_logged_in() && bp_blog_signup_enabled() && apply_filters( 'bp_theme_compat_show_create_button_in_title', true ) ) { 196 196 $title = '<a class="button bp-title-button" href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_blogs_root_slug() ) . '">' . __( 'Sites', 'buddypress' ) . '</a> ' . __( 'Create a Site', 'buddypress' ); 197 197 } else { 198 198 $title = __( 'Sites', 'buddypress' ); -
bp-groups/bp-groups-screens.php
class BP_Groups_Theme_Compat { 1023 1023 public function directory_dummy_post() { 1024 1024 1025 1025 // Title based on ability to create groups 1026 if ( is_user_logged_in() && bp_user_can_create_groups() ) {1026 if ( is_user_logged_in() && bp_user_can_create_groups() && apply_filters( 'bp_theme_compat_show_create_button_in_title', true ) ) { 1027 1027 $title = __( 'Groups', 'buddypress' ) . ' <a class="button bp-title-button" href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create' ) . '">' . __( 'Create a Group', 'buddypress' ) . '</a>'; 1028 1028 } else { 1029 1029 $title = __( 'Groups', 'buddypress' );