woocommerce/plugins/woocommerce-beta-tester
Rodrigo Primo 60836b698f Check WC version before calling WC_API::rest_api_includes()
When running WC 3.6 or greater it is necessary to call WC_API::rest_api_includes() to manually load the WC REST API classes. The problem is that this method was private before WC 3.6, so this commit adds a check to only call WC_API::rest_api_includes() when the WC version is 3.6 or greater. For WC older versions, loading the classes is not necessary, as they are always loaded by default.

Without this change, the following error happens when using the beta tester plugin with WC < 3.6:

```
Fatal error: Uncaught Error: Call to private method WC_API::rest_api_includes() from context 'WC_Beta_Tester_Admin_Menus' in /srv/www/wc-beta-tester/htdocs/wp-content/plugins/woocommerce-beta-tester/includes/class-wc-beta-tester-admin-menus.php on line 161
```

Related woocommerce/woocommerce-beta-tester#50
2019-03-13 15:28:58 -03:00
..
.wordpress-org .org assets 2018-06-07 15:01:32 +01:00
assets/js Text tweaks and styling, phpcs 2018-06-25 12:35:57 +01:00
includes Check WC version before calling WC_API::rest_api_includes() 2019-03-13 15:28:58 -03:00
.editorconfig Introduced .editorconfig 2018-06-04 16:06:33 -03:00
.gitignore Composer dependencies 2018-06-04 16:06:43 -03:00
composer.json Composer dependencies 2018-06-04 16:06:43 -03:00
composer.lock Composer dependencies 2018-06-04 16:06:43 -03:00
package-lock.json Updated dependencies 2019-02-13 12:23:20 -02:00
package.json Updated dependencies 2019-02-13 12:23:20 -02:00
phpcs.xml Composer dependencies 2018-06-04 16:06:43 -03:00
readme.txt Update readme.txt 2019-03-13 14:56:06 -03:00
woocommerce-beta-tester.php Remove requests to GH 2018-07-06 11:01:42 -07:00

readme.txt

=== WooCommerce Beta Tester ===
Contributors: automattic, bor0, claudiosanches, claudiulodro, kloon, mikejolley, peterfabian1000
Tags: woocommerce, woo commerce, beta, beta tester, bleeding edge, testing
Requires at least: 4.7
Tested up to: 5.1
Stable tag: 2.0.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Easily update to prerelease versions of WooCommerce for testing and development
purposes.

== Description ==

**WooCommerce Beta Tester** allows you to try out new versions of WooCommerce
before they are officially released.

**Use with caution, not on production sites. Beta releases may not be stable.**

After activation, you'll be able to choose an update channel:

1. Beta - Update to beta releases, RC, or stable, depending on what is newest.
2. Release Candidate - Update to RC releases or stable, depending on what is
newest.
3. Stable - No beta updates. Default WordPress behavior.

These will surface pre-releases via automatic updates in WordPress. Updates will
replace your installed version of WooCommerce.

**Note**, this will not check for updates on every admin page load unless you
explicitly tell it to. You can do this by clicking the "Check Again" button from
the WordPress updates screen or you can set the `WC_BETA_TESTER_FORCE_UPDATE` to
true in your `wp-config.php` file.

== Frequently Asked Questions ==

= Does this allow me to install multiple versions of WooCommerce at the same
time?

No; updates will replace your currently installed version of WooCommerce. You
can switch to any version from this plugin via the interface however.

= Where do updates come from? =

Updates are downloaded from the WordPress.org SVN repository where we tag
prerelease versions specifically for this purpose.

= Does this rollback my data? =

This plugin does not rollback or update data on your store automatically.
Database updates are manually ran like after regular updates. If you downgrade,
data will not be modified. We don't recommend using this in production.

= Where can I report bugs or contribute to WooCommerce Beta Tester? =

Bugs can be reported to the [WooCommerce Beta Tester GitHub issue tracker](https://github.com/woocommerce/woocommerce-beta-tester).

= Where can I report bugs or contribute to WooCommerce? =

Join in on our [GitHub repository](https://github.com/woocommerce/woocommerce/).

See our [contributing guidelines here](https://github.com/woocommerce/woocommerce/blob/master/.github/CONTRIBUTING.md).

== Changelog ==

= 2.0.0 =
* Enhancement - Re-built to pull updates from the WordPress.org repository rather than GitHub.
* Enhancement - Channel selection; choose to receive RC or beta versions.
* Enhancement - Admin bar item shows version information, and offers shortcuts to functionality.
* Enhancement - Shortcut to log GitHub issues.
* Enhancement - Version switcher; choose which release or prerelease to switch to.
* Enhancement - Setting to enable auto-updates.

= 1.0.3 =
* Fix repo URLs and directory renaming.

= 1.0.2 =
* Updated API URL.

= 1.0.1 =
* Switched to releases API to get latest release, rather than tag which are not chronological.

= 1.0 =
* First release.