Skip to:
Content

BuddyPress.org

Ticket #5144: 5144.01.patch

File 5144.01.patch, 1.6 KB (added by r-a-y, 11 years ago)
  • bp-blogs/bp-blogs-screens.php

    class BP_Blogs_Theme_Compat { 
    192192        public function create_dummy_post() {
    193193
    194194                // 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 ) ) {
    196196                        $title = '<a class="button bp-title-button" href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_blogs_root_slug() ) . '">' . __( 'Sites', 'buddypress' ) . '</a>&nbsp;' . __( 'Create a Site', 'buddypress' );
    197197                } else {
    198198                        $title = __( 'Sites', 'buddypress' );
  • bp-groups/bp-groups-screens.php

    class BP_Groups_Theme_Compat { 
    10231023        public function directory_dummy_post() {
    10241024
    10251025                // 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 ) ) {
    10271027                        $title = __( 'Groups', 'buddypress' ) . '&nbsp;<a class="button bp-title-button" href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create' ) . '">' . __( 'Create a Group', 'buddypress' ) . '</a>';
    10281028                } else {
    10291029                        $title = __( 'Groups', 'buddypress' );