Making WordPress.org


Ignore:
Timestamp:
04/08/2014 01:19:58 AM (11 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress.org: Remove outdated dashboard widget removal code from bbpress-org plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/plugins/bbpress-org/bbpress-dot-org.php

    r447 r529  
    1212include_once( plugin_dir_path( __FILE__ ) . 'toolbar.php' );
    1313include_once( plugin_dir_path( __FILE__ ) . 'tools.php'   );
    14 
    15 /**
    16  * Remove the bbPress dashboard widget, since it uses get_users() and causes
    17  * major slow-down.
    18  *
    19  * @author johnjamesjacoby
    20  * @since 1.0
    21  * @param type $admin
    22  */
    23 function bbporg_remove_dashboard_widget( $admin ) {
    24     remove_action( 'wp_dashboard_setup', array( $admin, 'dashboard_widget_right_now' ) );
    25 }
    26 add_action( 'bbp_admin_loaded', 'bbporg_remove_dashboard_widget' );
    2714
    2815/**
Note: See TracChangeset for help on using the changeset viewer.