Skip to content

Release 4.4.3 — fix Woo add-on file path and non-media sync PHP warnings - #846

Merged
andypotanin merged 1 commit into
latestfrom
fix/845-803
Sep 5, 2026
Merged

andypotanin merged 1 commit into
latestfrom
fix/845-803

Conversation

@andypotanin

@andypotanin andypotanin commented Sep 5, 2026 •

Copy link
Copy Markdown
Member

Overview

Patch release with two small fixes.

Changes

  • static/data/addons.php — corrected addon_file for the WooCommerce Extra Product Options add-on: the value had a duplicated .php extension (...addon.php.php), so the installed/active check and the activation link on the Stateless → Addons screen never matched the real main file (wp-stateless-woo-extra-product-options-addon.php). Fixes addons.php: duplicate .php extension for woo-extra-product-options addon_file #845.
  • lib/classes/class-sync-non-media.php — resolved PHP warnings reported in Undefined Variable Warnings - Video Upload Fails with "Unexpected response from the server" Error #803:
    • $media is now initialized to null before the sync branch. Previously, when $object->update() threw inside the (swallowed) try/catch, $media was passed undefined to sm::synced::nonMediaFiles, sm:sync::addFile, and the return statement (Undefined variable $media warnings).
    • Declared private $client = null; — the property was created dynamically, which is deprecated on PHP 8.2+ (Creation of dynamic property ... $client is deprecated).
  • Version bump to 4.4.3 (wp-stateless-media.php, readme.txt) and changelog entries (changes.md, changelog.txt, readme.txt).

Behavior notes

Testing

  • php -l clean on all edited PHP files.
  • To be verified on the wpcloud develop-stateless environments with the Ghost Inspector suite after merge (per release convention).

Fixes #845
Ref #803


Devin Review

Copilot AI balanced review requested due to automatic review settings September 5, 2026 15:44

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused fixes match the reported issues and release metadata consistently.

Pull request overview

Fixes add-on detection and PHP warnings, then prepares release 4.4.3.

Changes:

  • Corrects the WooCommerce add-on file path.
  • Initializes sync state and declares the Google Cloud client property.
  • Updates version and changelog documentation.
File summaries
File Description
wp-stateless-media.php Bumps plugin version.
static/data/addons.php Fixes the add-on path.
lib/classes/class-sync-non-media.php Prevents PHP warnings.
readme.txt Updates release metadata and changelog.
changes.md Adds release notes.
changelog.txt Adds release notes.
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

addons.php: duplicate .php extension for woo-extra-product-options addon_file

2 participants