New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the ability to update Woo.com extensions not available in WP.org plugin directory #44279
Conversation
…ed from Woo.com This prevents the WP core from updating Woo.com plugins.
…d from Woo.com This prevents the WP core from updating Woo.com themes.
…org with update URI's from Woo.com.
Test Results SummaryCommit SHA: 75cbfd2
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
…ing the package from Woo.com extensions. When a Woo hosted plugin has an update, this will allow showing the update message but block the ability to update.
When a Woo.com hosted plugin has an update available it will show a message to install Woo Marketplace plugin, if it's not installed.
…odifying update notice.
…ion about market-place plugin.
…sed on the installation status.
@anaspk thanks for the review:
This is fixed with 19bb02c and 41c3b3b
I've intentionally skip this as there is no component for adding the bubble. As this is not an important indicator given the bubble on extensions menu is shown, this will be covered in another PR.
Fixed with 7681e62 |
Thanks for reporting this @denho. This is something that can be resolved in Woo Update Manger. I'll do some testing and add a fix to Woo Update Manager repo. |
plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php
Outdated
Show resolved
Hide resolved
plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php
Outdated
Show resolved
Hide resolved
* Add wum-installed parameter to the connect URL * Send status of Woo Update Manager installation on connection init. * Revert "Add wum-installed parameter to the connect URL" This reverts commit 4c55038. --------- Co-authored-by: Denis Dvali <denis.dvali@automattic.com>
Submission Review Guidelines:
Changes proposed in this Pull Request:
Closes # .
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Assets for testing
Testing the removal of plugin update functionality
pnpm -- wp-env start
Use
pnpm -- wp-env run cli bash
to change the version of the Square extension to an older version, by editingwoocommerce-square.php
.Notice that now an Update button is shown in for this plugin My Subscriptions
10 You should be able to update
Square
, since it's hosted in WP.org.AutomateWoo
manually. (Woo.com auto install process won't work since the site is hosted locally).Use
pnpm -- wp-env run cli bash
to change the version ofAutomateWoo
to an older version.The WP plugin page won't display the update button, but a message to install woo marketplace plugin will be displayed to the user.
But the My Subscriptions should show the
update
button.Testing Notifications
Changes to the notifications are based on what discussed in this P2: https://woomarketplace.wordpress.com/2024/02/13/woo-connect-plugin-flows-i2/
pnpm -- wp-env start
and build assets usingpnpm --filter='@woocommerce/plugin-woocommerce' build
pnpm -- wp-env run cli bash
to change the version ofAutomateWoo
(or another Woo.com plugin) to an older version.Install the Woo Update Manager plugin but keep it deactivated. Refresh my-subscriptions tab to notice that the notification has changed. Latest version of the plugin can be downloaded under
Assets for Testing
section at the top of the test instructions.The message should be same on discover extensions tab
On the plugin management page a notification should be displayed asking to activate Woo Connect.
Disconnect the store and notice the new connect message.
Testing wccom-site API status endpoint
pnpm -- wp-env start
woocommerce_helper_data
option\WC_WCCOM_Site::verify_wccom_request
function always returntrue
;Testing installtion URL on customer site with woocommerce.test
Use this WC build under
Assets for Testing
section at the top of the test instructions.Add the following filter on customer mu-plugins to change installation URL to
woocommerce.test
.
Changelog entry
Significance
Type
Message
Comment