WordPress.org

Plugin Directory

Changeset 556268


Ignore:
Timestamp:
06/11/12 19:31:02 (23 months ago)
Author:
jorbin
Message:

fix login via non admin issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • addthis/trunk/addthis_social_widget.php

    r554961 r556268  
    766766function addthis_dashboard_init() { 
    767767    $options = get_option('addthis_settings'); 
    768     if (isset($options['addthis_show_stats']) && $options['addthis_show_stats'] == true && isset($options['username']) && isset($options['password']) && ! empty($options['username']) && ! empty($options['password']) && (current_user_can('manage_options') || apply_filter('addthis_show_dashboard', __return_false() ) ) ) 
     768    if (isset($options['addthis_show_stats']) && $options['addthis_show_stats'] == true && isset($options['username']) && isset($options['password']) && ! empty($options['username']) && ! empty($options['password']) && (current_user_can('manage_options') || apply_filters('addthis_show_dashboard', __return_false() ) ) ) 
    769769        wp_add_dashboard_widget('dashboard_addthis', 'AddThis', 'addthis_render_dashboard_widget_holder');    
    770770}  
Note: See TracChangeset for help on using the changeset viewer.