cfca07eca8
* Refactor remote logging in WooCommerce This commit refactors the remote logging functionality in WooCommerce to improve its efficiency and flexibility. - In the `class-woocommerce.php` file, the `context` array now includes a new key `remote-logging` to indicate whether the error should be logged remotely if remote logging is enabled. - In the `RemoteLogger.php` file, the `file` key in the `context['error']` array is now assigned to the `$log_data` array, and then unset from the `context['error']` array. - The `should_handle` method in the `RemoteLogger` class now checks for the presence of the `remote-logging` key in the `context` array. If it is not set or set to `false`, the log is ignored. - The `RemoteLoggerTest.php` file includes new test cases to ensure that the `should_handle` method returns `false` when the `remote-logging` key is not present in the `context` array. These changes improve the remote logging functionality in WooCommerce and make it more robust and efficient. * Revert log format change * Set remote-logging context to true in log remote event method * Add changelog * revert change * revert change |
||
---|---|---|
.. | ||
.wordpress-org | ||
api | ||
assets | ||
bin | ||
changelog | ||
images | ||
includes | ||
src | ||
typing | ||
userscripts | ||
.distignore | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.prettierrc.js | ||
.travis.yml | ||
.wp-env.json | ||
EXTENDING-WC-ADMIN-HELPER.md | ||
NEXT_CHANGELOG.md | ||
README.md | ||
changelog.txt | ||
composer.json | ||
composer.lock | ||
package.json | ||
phpcs.xml | ||
plugin.php | ||
tsconfig.json | ||
webpack.config.js | ||
woocommerce-beta-tester.php |
README.md
WooCommerce Beta Tester
A plugin that makes it easy to test out pre-releases such as betas release candidates and even final releases. It also comes with WooCommerce Admin Test Helper that helps test WooCommerce Admin functionalities.
Installation
You can either install the latest version from wp.org or symlink this directory by running ln -s ./ :path-to-your-wp-plugin-directory/woocommerce-beta-tester
Development
To get started, run the following commands:
pnpm --filter=@woocommerce/plugin-woocommerce-beta-tester install
pnpm --filter=@woocommerce/plugin-woocommerce-beta-tester start
See wp-scripts for more usage information.
Usage
You can get to the settings and features from your top admin bar under the name WC Beta Tester.
For more information about WooCommerce Admin Test Helper usage, click here.
Run ./bin/build-zip.sh
to make a zip file.