Skip to content

Conversation

@johnbillion
Copy link
Contributor

@johnbillion johnbillion commented Jan 29, 2026

Fixes #427

I've been using this on my local installation for a couple of weeks, although with a fairly limited number of updates. Needs some thorough testing by the FAIR Connect team.

Testing

Testing this requires installing more than one plugin or theme that has a Plugin ID: did:plc:... header. You can install Pods, Query Monitor, User Switching, and WP Crontrol for testing this. They don't need to be active.

Prior to testing you can choose to flush all your transients or not. This change doesn't affect the way transients for updates are stored or handled so it will continue to work with your existing cache.

In order to trigger and test an update check for a plugin or theme, you'll need to clear the appropriate transients.

Items to test:

  • Update checks
  • Update notices
  • Performing updates

Before

After

@github-actions
Copy link
Contributor

…ugin- and theme-specific logic as necessary.

Signed-off-by: John Blackbourn <[email protected]>
@johnbillion johnbillion marked this pull request as ready for review January 29, 2026 16:28
@afragen afragen requested review from afragen, costdev and rmccue January 29, 2026 17:03
@afragen afragen added this to the 1.4.0 milestone Jan 29, 2026
@afragen afragen added enhancement New feature or request needs review Probably ready for work, but needs eyes to double check. labels Jan 29, 2026
@afragen
Copy link
Contributor

afragen commented Jan 29, 2026

@johnbillion how do I setup QM to see the hooks you are seeing?

* @return string|WP_Error
*/
public function upgrader_source_selection( string $source, string $remote_source, WP_Upgrader $upgrader, $hook_extra = null ) {
public static function upgrader_source_selection( string $source, string $remote_source, WP_Upgrader $upgrader, $hook_extra = null ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this have the changes from string $source to $source and the early exit for a WP_Error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request needs review Probably ready for work, but needs eyes to double check.

Projects

Status: No status
Status: No status

Development

Successfully merging this pull request may close these issues.

🐞 Bug Report: Every FAIR-enabled plugin or theme results in a new Updater instance adding its hooks

2 participants