From 03c11189527fb16076b0899f1506533782ffd379 Mon Sep 17 00:00:00 2001 From: Lai Power Date: Thu, 27 Jun 2024 12:11:06 +0000 Subject: [PATCH] updated plugin `Simple Local Avatars` version 2.7.10 --- .../includes/class-simple-local-avatars.php | 10 +- .../plugins/simple-local-avatars/readme.txt | 148 ++---------------- .../simple-local-avatars.php | 8 +- 3 files changed, 28 insertions(+), 138 deletions(-) diff --git a/wp-content/plugins/simple-local-avatars/includes/class-simple-local-avatars.php b/wp-content/plugins/simple-local-avatars/includes/class-simple-local-avatars.php index df0146e1..f7fe83d6 100644 --- a/wp-content/plugins/simple-local-avatars/includes/class-simple-local-avatars.php +++ b/wp-content/plugins/simple-local-avatars/includes/class-simple-local-avatars.php @@ -276,7 +276,14 @@ class Simple_Local_Avatars { // Local only mode if ( ! $simple_local_avatar_url ) { - $args['url'] = $this->get_default_avatar_url( $args['size'] ); + $default_url = $this->get_default_avatar_url( $args['size'] ); + $avatar_default = get_option( 'avatar_default' ); + + if ( ! empty( $this->options['only'] ) ) { + $args['url'] = $default_url; + } elseif ( 'simple_local_avatar' === $avatar_default ) { + $args['default'] = $default_url; + } } if ( ! empty( $args['url'] ) ) { @@ -1470,6 +1477,7 @@ class Simple_Local_Avatars { +

Discussion. This was the default behavior in 1.0. -* Localization support; German included - -= 1.0 - 2011-01-18 = -* Initial release. +[View historical changelog details here](https://github.com/10up/simple-local-avatars/blob/develop/CHANGELOG.md). == Upgrade Notice == diff --git a/wp-content/plugins/simple-local-avatars/simple-local-avatars.php b/wp-content/plugins/simple-local-avatars/simple-local-avatars.php index 5a3da1e2..3d34314f 100644 --- a/wp-content/plugins/simple-local-avatars/simple-local-avatars.php +++ b/wp-content/plugins/simple-local-avatars/simple-local-avatars.php @@ -3,13 +3,13 @@ * Plugin Name: Simple Local Avatars * Plugin URI: https://10up.com/plugins/simple-local-avatars-wordpress/ * Description: Adds an avatar upload field to user profiles. Generates requested sizes on demand, just like Gravatar! Simple and lightweight. - * Version: 2.7.8 + * Version: 2.7.10 * Requires at least: 6.3 * Requires PHP: 7.4 * Author: 10up * Author URI: https://10up.com - * License: GPLv2 or later - * License URI: https://www.gnu.org/licenses/gpl-2.0.html + * License: GPL-2.0-or-later + * License URI: https://spdx.org/licenses/GPL-2.0-or-later.html * Text Domain: simple-local-avatars * * @package SimpleLocalAvatars @@ -67,7 +67,7 @@ define( 'SLA_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); require_once dirname( __FILE__ ) . '/includes/class-simple-local-avatars.php'; // Global constants. -define( 'SLA_VERSION', '2.7.8' ); +define( 'SLA_VERSION', '2.7.10' ); define( 'SLA_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); if ( ! defined( 'SLA_IS_NETWORK' ) ) {