Plugin Directory

Changeset 323612


Ignore:
Timestamp:
12/16/2010 05:27:36 PM (15 years ago)
Author:
nkuttler
Message:

turn off plugin in admin bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • custom-avatars-for-comments/trunk/inc/frontend.php

    r323611 r323612  
    4848            if ( $this->get_option( 'showhomelink' ) == '1' )
    4949                add_action( 'wp_footer', array( &$this, 'homelink' ), 8 );
     50            // turn off in admin bar
     51            add_action( 'admin_bar_menu', array( &$this, 'tmpdisable' ) );
     52            add_action( 'wp_after_admin_bar_render', array( &$this, 'tmpenable' ) );
    5053        }
    5154    }
     
    218221    }
    219222
     223    function tmpdisable() {
     224        remove_filter( 'get_avatar', array( &$this, 'filter' ) );
     225    }
     226
     227    function tmpenable() {
     228        add_filter( 'get_avatar', array( &$this, 'filter' ), 10, 5 );
     229    }
     230
    220231}
    221232
Note: See TracChangeset for help on using the changeset viewer.