From 78c76be2248fdddbc2001fc1d8b58601253b3732 Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <23417+roborourke@users.noreply.github.com> Date: Fri, 29 Aug 2025 15:38:59 +0100 Subject: [PATCH 1/3] Update simple-local-avatars version to 2.8.5 Patchstack is reporting 2 low priority CVEs for <= 2.7.1 and <= 2.8.4 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2298bf0..31efaf2 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "humanmade/clean-html": "^2.0.0", "humanmade/altis-reusable-blocks": "~0.2.4", "humanmade/asset-loader": "^0.6.4", - "10up/simple-local-avatars": "~2.7.11" + "10up/simple-local-avatars": "~2.8.5" }, "autoload": { "files": [ From 6245adec09a99110300a93144f78d4a03f95cc17 Mon Sep 17 00:00:00 2001 From: Mike Little Date: Mon, 24 Nov 2025 18:11:57 +0000 Subject: [PATCH 2/3] Update the plugin dependency to use the wpackagist version. This resolves the issue that the plugin expects the `10up/wp-compat-validation-tool` to be local to the plugin code and modified to have a different namespace. the CMS module needs to initialise the plugin from the `WP_PLUGIN_DIR` directory. --- composer.json | 2 +- inc/namespace.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 00fcd92..6d589c7 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "humanmade/clean-html": "^2.0.0", "humanmade/altis-reusable-blocks": "~0.2.4", "humanmade/asset-loader": "^0.6.4", - "10up/simple-local-avatars": "~2.8.5" + "wpackagist-plugin/simple-local-avatars": "~2.8.5" }, "autoload": { "files": [ diff --git a/inc/namespace.php b/inc/namespace.php index d61877e..afad0dd 100644 --- a/inc/namespace.php +++ b/inc/namespace.php @@ -324,9 +324,9 @@ function load_plugins() { $config = Altis\get_config()['modules']['cms']; if ( $config['local-avatars'] ) { - require_once Altis\ROOT_DIR . '/vendor/10up/simple-local-avatars/simple-local-avatars.php'; + require_once WP_PLUGIN_DIR . '/simple-local-avatars/simple-local-avatars.php'; - // Hide the User Profile Picture field if local avatars is active. Replaced by the Avatar field on the same page. + // Hide the core User Profile Picture field if local avatars is active. Replaced by the Avatar field on the same page. add_action( 'admin_head', function() { echo '