Skip to:
Content

BuddyPress.org

Ticket #2024: 2024-removal.patch

File 2024-removal.patch, 804 bytes (added by TobiasBg, 15 years ago)

Patch removes unneeded function instead of just marking it

  • bp-core-cssjs.php

     
    164164}
    165165add_action( 'wp_head', 'bp_core_add_ajax_url_js' );
    166166
    167 /**
    168  * bp_core_override_adminbar_css()
    169  *
    170  * Overrides the theme's admin bar CSS to hide the adminbar if disabled.
    171  *
    172  * @package BuddyPress Core
    173  */
    174 function bp_core_override_adminbar_css() {
    175         global $bp;
    176 
    177         if ( defined( 'BP_DISABLE_ADMIN_BAR' ) || ( $bp->site_options['hide-loggedout-adminbar'] && !is_user_logged_in() ) ) {
    178         ?>
    179 <style type="text/css">body { padding-top: 0 !important; } #wp-admin-bar { display: none; }</style>
    180         <?php }
    181 }
    182 add_action( 'wp_footer', 'bp_core_override_adminbar_css' );
    183167?>
    184  No newline at end of file