Skip to:
Content

bbPress.org

Ticket #2906: 2906.patch

File 2906.patch, 1.0 KB (added by ocean90, 4 years ago)

WP < 4.6

  • src/includes/admin/users.php

     
    5252                add_action( 'edit_user_profile', array( $this, 'secondary_role_display' ) );
    5353
    5454                // WordPress user screen
    55                 add_action( 'restrict_manage_users',      array( $this, 'user_role_bulk_dropdown' )        );
     55                add_action( 'restrict_manage_users',      array( __CLASS__, 'user_role_bulk_dropdown' )        );
    5656                add_filter( 'manage_users_columns',       array( $this, 'user_role_column'        )        );
    5757                add_filter( 'manage_users_custom_column', array( $this, 'user_role_row'           ), 10, 3 );
    5858
     
    133133         */
    134134        public static function user_role_bulk_dropdown() {
    135135
     136                // See https://core.trac.wordpress.org/changeset/34636.
     137                remove_action( 'restrict_manage_users', array( __CLASS__, 'user_role_bulk_dropdown' ) );
     138
    136139                // Bail if current user cannot promote users
    137140                if ( ! current_user_can( 'promote_users' ) ) {
    138141                        return;