Version Description
- Fix for avatars uploaded pre-1.2.1 having a broken path after upgrade
Download this release
Release Info
Developer | jakemgold |
Plugin | Simple Local Avatars |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- readme.txt +6 -3
- simple-local-avatars.php +7 -5
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Simple Local Avatars ===
|
2 |
-
Contributors: jakemgold
|
3 |
-
Donate link: http://www.
|
4 |
Tags: avatar, gravatar, user photos, users, profile
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1
|
7 |
-
Stable tag: 1.2.
|
8 |
|
9 |
Adds an avatar upload field to user profiles if the current user has media permissions. Generates requested sizes on demand just like Gravatar!
|
10 |
|
@@ -35,6 +35,9 @@ Unlike other avatar plug-ins, Simple Local Avatars:
|
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
38 |
= 1.2.1 =
|
39 |
* French localization
|
40 |
* Simplify uninstall code
|
1 |
=== Simple Local Avatars ===
|
2 |
+
Contributors: jakemgold, thinkoomph
|
3 |
+
Donate link: http://www.get10up.com/plugins/simple-local-avatars-wordpress/
|
4 |
Tags: avatar, gravatar, user photos, users, profile
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1
|
7 |
+
Stable tag: 1.2.2
|
8 |
|
9 |
Adds an avatar upload field to user profiles if the current user has media permissions. Generates requested sizes on demand just like Gravatar!
|
10 |
|
35 |
|
36 |
== Changelog ==
|
37 |
|
38 |
+
= 1.2.2 =
|
39 |
+
* Fix for avatars uploaded pre-1.2.1 having a broken path after upgrade
|
40 |
+
|
41 |
= 1.2.1 =
|
42 |
* French localization
|
43 |
* Simplify uninstall code
|
simple-local-avatars.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
Plugin Name: Simple Local Avatars
|
4 |
-
Plugin URI: http://www.
|
5 |
Description: Adds an avatar upload field to user profiles if the current user has media permissions. Generates requested sizes on demand just like Gravatar! Simple and lightweight.
|
6 |
-
Version: 1.2.
|
7 |
-
Author: Jake Goldman (
|
8 |
-
Author URI: http://www.
|
9 |
|
10 |
-
Plugin: Copyright 2011
|
11 |
|
12 |
This program is free software; you can redistribute it and/or modify
|
13 |
it under the terms of the GNU General Public License as published by
|
@@ -91,6 +91,8 @@ class simple_local_avatars
|
|
91 |
|
92 |
update_user_meta( $user_id, 'simple_local_avatar', $local_avatars );
|
93 |
}
|
|
|
|
|
94 |
|
95 |
$author_class = is_author( $user_id ) ? ' current-author' : '' ;
|
96 |
$avatar = "<img alt='" . esc_attr($alt) . "' src='" . $local_avatars[$size] . "' class='avatar avatar-{$size}{$author_class} photo' height='{$size}' width='{$size}' />";
|
1 |
<?php
|
2 |
/**
|
3 |
Plugin Name: Simple Local Avatars
|
4 |
+
Plugin URI: http://www.get10up.com/plugins/simple-local-avatars-wordpress/
|
5 |
Description: Adds an avatar upload field to user profiles if the current user has media permissions. Generates requested sizes on demand just like Gravatar! Simple and lightweight.
|
6 |
+
Version: 1.2.2
|
7 |
+
Author: Jake Goldman (10up), Oomph Inc
|
8 |
+
Author URI: http://www.get10up.com
|
9 |
|
10 |
+
Plugin: Copyright 2011 10up (email : jake@get10up.com)
|
11 |
|
12 |
This program is free software; you can redistribute it and/or modify
|
13 |
it under the terms of the GNU General Public License as published by
|
91 |
|
92 |
update_user_meta( $user_id, 'simple_local_avatar', $local_avatars );
|
93 |
}
|
94 |
+
elseif ( substr( $local_avatars[$size], 0, 4 ) != 'http' )
|
95 |
+
$local_avatars[$size] = site_url( $local_avatars[$size] );
|
96 |
|
97 |
$author_class = is_author( $user_id ) ? ' current-author' : '' ;
|
98 |
$avatar = "<img alt='" . esc_attr($alt) . "' src='" . $local_avatars[$size] . "' class='avatar avatar-{$size}{$author_class} photo' height='{$size}' width='{$size}' />";
|