Adds support for the WPE update server. Future updates will be served from WPE infrastructure instead of WP.org.
Removes all jobs from Circle CI config that deploy to WP.org. (These will fail due to blocked WPE access, so there is no need to run them.)
Bumps version to 1.1.3 and updates changelog.
Adds npm run zip script for easier packaging (there is not yet a zip job in Circle for this repo).
To test
Create a new site in Local.
Install the transient manager plugin, for example with WP-CLI via Site Shell: wp plugin install --activate transients-manager
Download, install, and activate the Genesis Connect for WooCommerce plugin from this zip via your WP Admin (Plugins → Add New Plugin → Upload Plugin): genesis-connect-woocommerce.1.1.1.zip (I created the zip by reducing the version number in the root PHP file and running npm run zip.) Do not update the plugin yet when you see an update prompt.
Visit Tools → Transients and click "Delete All". This deletes any cached update_plugins transient you may have that could result in updates coming from WP.org instead of WPE if a plugin update check occurred after you installed but before you activated Genesis Blocks. This is just to accelerate testing (it prevents you having to wait for transients to expire). Customers will not have to do this once upgrading to 1.1.3 of the plugin.
Go to Dashboard → Updates. You should see a pending update for Genesis Connect for WooCommerce.
Click "Select All" and then "Update Plugins". The update will run and expanding "more details" should show that it was downloaded from WPE:
At this point the Genesis Connect for WooCommerce on your site is the old version without WPE update checking (that is just what's uploaded to the WPE update server at the moment — we will change that when this PR is merged). You will need to delete the plugin and reinstall the one linked above if you want to do further tests.
Other screenshots
Diff of current production version with zip created by npm run script from this PR. (I removed the stray package-lock.json from the production zip on purpose.)
npm run zip
script for easier packaging (there is not yet a zip job in Circle for this repo).To test
wp plugin install --activate transients-manager
npm run zip
.) Do not update the plugin yet when you see an update prompt.update_plugins
transient you may have that could result in updates coming from WP.org instead of WPE if a plugin update check occurred after you installed but before you activated Genesis Blocks. This is just to accelerate testing (it prevents you having to wait for transients to expire). Customers will not have to do this once upgrading to 1.1.3 of the plugin.At this point the Genesis Connect for WooCommerce on your site is the old version without WPE update checking (that is just what's uploaded to the WPE update server at the moment — we will change that when this PR is merged). You will need to delete the plugin and reinstall the one linked above if you want to do further tests.
Other screenshots
Diff of current production version with zip created by
npm run script
from this PR. (I removed the straypackage-lock.json
from the production zip on purpose.)