Skip to:
Content

BuddyPress.org

Changeset 12514


Ignore:
Timestamp:
01/11/2020 01:25:15 PM (7 months ago)
Author:
imath
Message:

Blogs: combine conditions and improve code format

Props mukesh27

Fixes #8190

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/screens/create.php

    r11934 r12514  
    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 
    20     if ( !is_user_logged_in() || !bp_blog_signup_enabled() )
    21         return false;
     19    }
    2220
    2321    /**
Note: See TracChangeset for help on using the changeset viewer.