Plugin Directory

Changeset 1108538


Ignore:
Timestamp:
03/09/2015 04:41:05 AM (11 years ago)
Author:
DanielAGW
Message:

Version 1.0.1:

  • Fixed avatar presentation in WP-Admin
Location:
buddypress-first-letter-avatar
Files:
149 added
3 edited

Legend:

Unmodified
Added
Removed
  • buddypress-first-letter-avatar/trunk/buddypress-first-letter-avatar-config.php

    r1106987 r1108538  
    1515    public function __construct(){
    1616
    17         add_action( 'admin_menu', array($this, 'bpfla_add_admin_menu' ));
    18         add_action( 'admin_init', array($this, 'bpfla_settings_init' ));
     17        add_action('admin_menu', array($this, 'bpfla_add_admin_menu'));
     18        add_action('admin_init', array($this, 'bpfla_settings_init'));
    1919
    2020    }
  • buddypress-first-letter-avatar/trunk/buddypress-first-letter-avatar.php

    r1106987 r1108538  
    55 * Contributors: DanielAGW
    66 * Description: Set custom avatars for BuddyPress users. The avatar will be a first (or any other) letter of the users's name.
    7  * Version: 1.0
     7 * Version: 1.0.1
    88 * Author: Daniel Wroblewski
    99 * Author URI: https://github.com/DanielAGW
     
    5252        add_action('wp_enqueue_scripts', array($this, 'bpfla_add_scripts'));
    5353
    54         // add filter to get_avatar but only when not in admin panel:
    55         if (!is_admin()){
    56             add_filter('get_avatar', array($this, 'set_comment_avatar'), 10, 5); // this will only be used for anonymous WordPress comments
    57         }
    58 
    5954        // add filter to get_avatar:
     55        add_filter('get_avatar', array($this, 'set_comment_avatar'), 10, 5); // this will only be used for anonymous WordPress comments
     56
     57        // add filter to bp_core_fetch_avatar:
    6058        add_filter('bp_core_fetch_avatar', array($this, 'set_buddypress_avatar'), 10, 1);
    61 
    6259
    6360        // get plugin configuration from database:
    6461        $options = get_option('bpfla_settings');
    6562        if (empty($options)){
    66 
    6763            // no records in DB, use default (const) values to save plugin config:
    6864            $settings = array(
     
    7672            );
    7773            add_option('bpfla_settings', $settings);
    78 
    7974        } else {
    80 
    8175            // there are records in DB for our plugin, let's assign them to our variables:
    8276            $this->use_profile_avatar = $options['bpfla_use_profile_avatar'];
     
    8781            $this->round_avatars = $options['bpfla_round_avatars'];
    8882            $this->image_unknown = $options['bpfla_unknown_image'];
    89 
    9083        }
    9184
  • buddypress-first-letter-avatar/trunk/readme.txt

    r1106987 r1108538  
    11=== BuddyPress First Letter Avatar ===
    22Plugin Name: BuddyPress First Letter Avatar
    3 Version: 1.0
     3Version: 1.0.1
    44Plugin URI: https://github.com/DanielAGW/buddypress-first-letter-avatar
    55Contributors: DanielAGW
     
    5858
    5959= I don't want to use Gravatar at all. Can I disable it? =
    60 Yes! By default, WP First Letter Avatar sets custom avatar only to users without Gravatar, but in plugin settings you can disable it and use custom avatar for everybody.
     60Yes! By default, BuddyPress First Letter Avatar sets custom avatar only to users without Gravatar and profile avatar, but in plugin settings you can disable it and use custom avatar for everybody.
    6161
    6262= Can avatars be round, like in Google+? =
     
    7676== Changelog ==
    7777
     78= 1.0.1 =
     79* Fixed avatar presentation in WP-Admin
     80
    7881= 1.0 =
    7982* First BuddyPress First Letter Avatar release
     
    8184== Upgrade Notice ==
    8285
     86= 1.0.1 =
     87Fixed avatar presentation in WP-Admin. Update recommended.
     88
    8389= 1.0 =
    8490First BuddyPress First Letter Avatar release.
Note: See TracChangeset for help on using the changeset viewer.