Ticket #2023: 2023-1.2-branch.patch
File 2023-1.2-branch.patch, 1.7 KB (added by , 15 years ago) |
---|
-
bp-core.php
41 41 require ( BP_PLUGIN_DIR . '/bp-core/bp-core-notifications.php' ); 42 42 require ( BP_PLUGIN_DIR . '/bp-core/bp-core-signup.php' ); 43 43 44 /* If BP_DISABLE_ADMIN_BAR is defined , do not load the global admin bar. */45 if ( ! defined( 'BP_DISABLE_ADMIN_BAR') )44 /* If BP_DISABLE_ADMIN_BAR is defined and set to true, do not load the global admin bar. */ 45 if ( ! ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) ) 46 46 require ( BP_PLUGIN_DIR . '/bp-core/bp-core-adminbar.php' ); 47 47 48 48 /* Define the slug for member pages and the members directory (e.g. domain.com/[members] ) */ -
bp-core/bp-core-adminbar.php
3 3 function bp_core_admin_bar() { 4 4 global $bp, $wpdb, $current_blog; 5 5 6 if ( defined( 'BP_DISABLE_ADMIN_BAR' ) )6 if ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) 7 7 return false; 8 8 9 9 if ( (int)get_site_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) -
bp-core/bp-core-cssjs.php
11 11 function bp_core_add_admin_bar_css() { 12 12 global $bp, $current_blog; 13 13 14 if ( defined( 'BP_DISABLE_ADMIN_BAR' ) )14 if ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) 15 15 return false; 16 16 17 17 if ( ( bp_core_is_multisite() && $current_blog->blog_id != BP_ROOT_BLOG ) || is_admin() ) {