Skip to content

Update simple-local-avatars version to 2.8.5#903

Open
roborourke wants to merge 4 commits intomasterfrom
sla-update-2.8.5
Open

Update simple-local-avatars version to 2.8.5#903
roborourke wants to merge 4 commits intomasterfrom
sla-update-2.8.5

Conversation

@roborourke
Copy link
Contributor

@roborourke roborourke commented Aug 29, 2025

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.

Patchstack is reporting 2 low priority CVEs for <= 2.7.1 and <= 2.8.4
@mikelittle
Copy link
Contributor

The multiple change logs for this don't look too bad. But for such a large leap, we need to do some testing.
I'll follow up on that.

@mikelittle mikelittle self-assigned this Aug 29, 2025
@roborourke
Copy link
Contributor Author

Yeah sorry, you should remove the back port labels and I’ll leave it to your discretion

Copy link
Contributor

@mikelittle mikelittle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't get this to install in product dev.
Since 2.8.0 it now requires 10up/wp-compat-validation-tool at dev-trunk which is not published on Packagist.

If I manually add the git repo as a source (not gonna happen for production), it still won't install as that needs an incompatible version of "composer/installers"

Have you got this to work on a project?

@roborourke
Copy link
Contributor Author

We usually put the composer/installers requirement as ^1 || ^2, but there must be a package somewhere requesting v1. I would aim to work out what that is and resolve it, and I would also chat to 10up about updating those constraints and publishing to packagist. They may be open to it.

Otherwise Altis will be shipping with a version that has a known CVE flagged by patchstack, so it’s also viable to just remove it from Altis I suppose. Projects can install it via wpackagist instead.

@mikelittle
Copy link
Contributor

Finally got round to raising 10up/simple-local-avatars#349

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.
@mikelittle
Copy link
Contributor

mikelittle commented Nov 24, 2025

This is now working with the wpackagist version of the plugin. Core avatar image removed and SLA section added on profile.php

CleanShot 2025-11-24 at 17 06 18

If we are OK to go with the wpackagist-plugin version, this is ready to go.

@rmccue
Copy link
Member

rmccue commented Nov 24, 2025

If we are OK to go with the wpackagist-plugin version, this is ready to go.

I want to ensure we're only using Packagist; the dep from 10up should be published to Packagist now, is there anything else blocking us?

Ah, I see this was covered at https://github.com/humanmade/product-dev/issues/1834#issuecomment-3572081387

Add initialisation code to ~move~copy the code to tghhe corerect diectory and search and replace the namespace in all PHP files.

However, **this won't work** on the AWS stack because of the read only file system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants