A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
Go to file
Nestor Soriano 8a7d955253 Improvements on the code hacker.
- Add methods to temporarily disable and reenable the code hacker.

The code hacker is causing issues in some tests that perform
write operations to the local filesystem. Since this happens only
in a few cases, the easiest fix is to temporarily disable the
code hacker when that happens. This commit adds two new methods
for that in `WC_Unit_Test_Case`: `disable_code_hacker` and
`reenable_code_hacker`.

These methods use a disabling requests count so that the hacker
isn't enabled before it should. E.g. you call `disable`, then
a helper method that does `disable` and `enable`, then `enable` -
then only the last `enable` will have effect.

- `CodeHacker::add_hack` has now a boolean `persistent` parameter.
Persistent hacks won't be cleared by `clear_hacks`.

- `CodeHackerTestHook::executeAfterTest` will now disable the hacker
only if no persistent hacks are registered.

- The existing `file_copy` method is made static for consistency.

- `CodeHacker::restore` method renamed to `disable` for clarity.
2020-05-20 09:56:26 +02:00
.github Updated build package name 2020-04-29 13:35:11 -03:00
.wordpress-org Update screenshots 2019-04-24 12:27:53 -03:00
assets Merge pull request #26410 from woocommerce/fix/message-type-styling 2020-05-14 14:37:12 +02:00
bin Introduced script to generate a zip package 2020-05-07 13:29:59 -03:00
i18n Style fix 2020-05-12 09:48:07 -07:00
includes Call callback on tracking script load error 2020-05-19 18:19:19 +03:00
packages Add note on unit tests 2019-06-26 15:17:52 +01:00
sample-data Update shopmanager display name 2019-01-16 16:01:39 +02:00
src Improvements on the code hacker. 2020-05-20 09:56:26 +02:00
templates Merge pull request #26445 from tsteur/issue_26414 2020-05-15 10:16:53 +02:00
tests Improvements on the code hacker. 2020-05-20 09:56:26 +02:00
.codeclimate.yml Remove references to apigen from configuration files 2019-06-28 10:20:30 -03:00
.codecov.yml Disable Codecov checks for each PR 2020-01-22 16:17:45 -03:00
.distignore Remove apigen 2020-04-27 20:18:38 -03:00
.editorconfig HTTPS for everybody 2016-05-26 22:48:49 -03:00
.eslintignore Ignore vendor files 2018-11-06 15:31:12 -05:00
.eslintrc.js change component name to e2e-environment 2020-04-30 14:01:42 -03:00
.gitattributes Merge pull request #25159 from woocommerce/ignore-bin 2019-12-03 15:30:01 -03:00
.gitignore Merge pull request #26314 from woocommerce/add/build-workflow 2020-05-15 10:36:34 +02:00
.scrutinizer.yml Remove references to apigen from configuration files 2019-06-28 10:20:30 -03:00
.stylelintrc Updated .stylelintrc config 2018-11-19 19:08:08 -02:00
.travis.yml Cleaned up our Travis config to suit the WP support policy 2020-05-19 07:00:32 -07:00
CHANGELOG.txt Added 4.1.0 entry in CHANGELOG.txt 2020-05-12 18:03:53 -03:00
CODE_OF_CONDUCT.md Fixed a typo 2017-06-19 16:22:40 -03:00
Dockerfile Update wordpress Docker tag to v5.4.1 2020-04-30 19:44:45 +00:00
Gruntfile.js Added the Gruntfile to its own ESLint task 2020-05-04 20:58:58 -07:00
README.md Proposed updated link to WooCommerce documentation 2020-05-11 07:13:46 +01:00
babel.config.js change component name to e2e-environment 2020-04-30 14:01:42 -03:00
composer.json Merge pull request #26519 from woocommerce/fix/csv-import-special-columns 2020-05-18 11:33:50 -03:00
composer.lock fix merge conflicts take 2 2020-05-12 14:32:59 -03:00
docker-compose.yaml change component name to e2e-environment 2020-04-30 14:01:42 -03:00
license.txt update license/readme URLs to HTTPS where appropriate 2019-05-16 09:32:06 -03:00
package-lock.json fix merge conflicts 2020-05-06 14:05:00 -03:00
package.json Merge pull request #26407 from woocommerce/feature/build-zip 2020-05-15 10:59:04 +02:00
phpcs.xml Add exception for tests/php for filename sniff because it conflicts with PSR4. 2020-05-05 19:22:21 +05:30
phpunit.xml All code hacking files moved to src\Testing folder. 2020-05-20 09:56:25 +02:00
readme.txt Increased the WordPress minimum version to 5.2 as per our support policy 2020-05-19 06:59:52 -07:00
renovate.json Corrected the format for the dev dependency schedule 2019-12-31 14:06:26 -08:00
uninstall.php Restored original behaviour of the constant. 2020-02-06 13:39:46 +01:00
webpack.config.js change component name to e2e-environment 2020-04-30 14:01:42 -03:00
woocommerce.php Start 4.3.0 development 2020-05-12 17:49:20 -03:00

README.md

WooCommerce

license Latest Stable Version WordPress.org downloads WordPress.org rating Build Status Scrutinizer Code Quality codecov

Welcome to the WooCommerce repository on GitHub. Here you can browse the source, look at open issues and keep track of development. We recommend all developers to follow the WooCommerce development blog to stay up to date about everything happening in the project. You can also follow @DevelopWC on Twitter for the latest development updates.

If you are not a developer, please use the WooCommerce plugin page on WordPress.org.

Documentation

Reporting Security Issues

To disclose a security issue to our team, please submit a report via HackerOne here.

Support

This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core WooCommerce issues only. Support can take place through the appropriate channels:

Support requests in issues on this repository will be closed on sight.

Contributing to WooCommerce

If you have a patch or have stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our contributor guidelines for more information how you can do this.