Skip to:
Content

BuddyPress.org

Ticket #8190: 8190.patch

File 8190.patch, 714 bytes (added by mukesh27, 7 months ago)

Patch.

  • src/bp-blogs/screens/create.php

     
    1414 */
    1515function bp_blogs_screen_create_a_blog() {
    1616
    17         if ( !is_multisite() ||  !bp_is_blogs_component() || !bp_is_current_action( 'create' ) )
     17        if ( !is_multisite() || !bp_is_blogs_component() || !bp_is_current_action( 'create' ) || !is_user_logged_in() || !bp_blog_signup_enabled() ) {
    1818                return false;
     19        }
    1920
    20         if ( !is_user_logged_in() || !bp_blog_signup_enabled() )
    21                 return false;
    22 
    2321        /**
    2422         * Fires right before the loading of the Create A Blog screen template file.
    2523         *