Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add default alt value to avoid missing arguments caused by

add-local-avatars plugin
  • Loading branch information...
commit 6a5df2ce9548dd1a8067143317fb045635bc3cc5 1 parent 9a2eeea
@jondavidjohn jondavidjohn authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  README.txt
  2. +1 −1  social-facebook.php
  3. +1 −1  social.php
View
1  README.txt
@@ -283,6 +283,7 @@ This version fixes several bugs and may help with HostGator's weird server "secu
= 2.9 =
* Added German and Norwegian Bokmål language support
* Now using HTTPS for Facebook and Twitter links and avatars
+* Fix Conflict with add-local-avatar plugin
= 2.8 =
* Change Twitter search endpoint to use v1.1
View
2  social-facebook.php
@@ -69,7 +69,7 @@ public static function get_avatar_comment_types(array $types) {
* @param string $alt
* @return string
*/
- public static function get_avatar($avatar, $comment, $size, $default, $alt) {
+ public static function get_avatar($avatar, $comment, $size, $default, $alt = '') {
if (is_object($comment) and in_array($comment->comment_type, Social_Service_Facebook::comment_types())) {
$image = esc_url(get_comment_meta($comment->comment_ID, 'social_profile_image_url', true));
if ($image !== null) {
View
2  social.php
@@ -1352,7 +1352,7 @@ public function get_avatar_comment_types($types) {
* @param string $alt
* @return string
*/
- public function get_avatar($avatar, $comment, $size, $default, $alt) {
+ public function get_avatar($avatar, $comment, $size, $default, $alt = '') {
$image = null;
if (is_object($comment)) {
$image = get_comment_meta($comment->comment_ID, 'social_profile_image_url', true);
Please sign in to comment.
Something went wrong with that request. Please try again.