Ticket #2023: 2023.patch
| File 2023.patch, 2.1 KB (added by , 16 years ago) |
|---|
-
bp-core.php
44 44 if ( bp_core_is_multisite() ) 45 45 require ( BP_PLUGIN_DIR . '/bp-core/bp-core-activation.php' ); 46 46 47 /* If BP_DISABLE_ADMIN_BAR is defined , do not load the global admin bar. */48 if ( ! defined( 'BP_DISABLE_ADMIN_BAR') )47 /* If BP_DISABLE_ADMIN_BAR is defined and set to true, do not load the global admin bar. */ 48 if ( ! ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) ) 49 49 require ( BP_PLUGIN_DIR . '/bp-core/bp-core-adminbar.php' ); 50 50 51 51 /* 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)$bp->site_options['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() ) { … … 174 174 function bp_core_override_adminbar_css() { 175 175 global $bp; 176 176 177 if ( defined( 'BP_DISABLE_ADMIN_BAR') || ( $bp->site_options['hide-loggedout-adminbar'] && !is_user_logged_in() ) ) {177 if ( ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) || ( $bp->site_options['hide-loggedout-adminbar'] && !is_user_logged_in() ) ) { 178 178 ?> 179 179 <style type="text/css">body { padding-top: 0 !important; } #wp-admin-bar { display: none; }</style> 180 180 <?php }