Commit Graph

93 Commits

Author SHA1 Message Date
Rodrigo Primo e7fa240d26 Merge branch 'master' into add-travis 2019-03-14 07:40:16 -03:00
Rodrigo Primo 5e6ae9bfb6 Fix WPCS violations automatically using phpcbf 2019-03-13 16:54:47 -03:00
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
Timmy Crawford 45a828cfaa Updates per feedback. 2019-03-13 10:41:26 -07:00
Timmy Crawford 8e8c9157f7 Fix exception when running against master/3.6-dev 2019-03-06 11:32:25 -08:00
claudiulodro a029008a1e Remove requests to GH 2018-07-06 11:01:42 -07:00
claudiulodro 5ea48d1e1c Hard-coded issue template 2018-07-06 10:12:53 -07:00
Mike Jolley 44ae609d7d Error handling
Closes woocommerce/woocommerce-beta-tester#44
2018-06-25 16:04:30 +01:00
Mike Jolley 988d14f64c Hide menus 2018-06-25 15:00:00 +01:00
Mike Jolley ca3fc80aaa Handle version updates
Closes woocommerce/woocommerce-beta-tester#10
2018-06-25 14:35:10 +01:00
Mike Jolley c67e46e8cf Merge branch 'master' of https://github.com/woocommerce/woocommerce-beta-tester 2018-06-25 12:43:47 +01:00
Mike Jolley b81b4e2a6e Text tweaks and styling, phpcs 2018-06-25 12:35:57 +01:00
Peter Fabian aa4554cf42 Sanitization, escaping and PHPCS updates. 2018-06-11 12:14:39 +02:00
Peter Fabian 1d500c1006 Plugin activation switched from redirect to WP function, then redirect to plugin page. 2018-06-08 18:26:56 +02:00
Peter Fabian 70ac4f9536 Fixed wording on Activate button. 2018-06-08 17:36:01 +02:00
Peter Fabian a3d0e5b906 Added basic version switching. 2018-06-08 17:35:16 +02:00
Boro Sitnikovski c0291f04b7 Add handler for version switch button 2018-06-08 12:31:40 +02:00
Mike Jolley 340e7821c7 Merge pull request woocommerce/woocommerce-beta-tester#31 from woocommerce/add/version-picking
Initial code to create a list of versions based on wp.org API.
2018-06-07 15:27:37 +01:00
Mike Jolley 09532920ac Merge pull request woocommerce/woocommerce-beta-tester#42 from woocommerce/tweak/include-theme-plugin-ssr-info
Include information about plugins/theme in the GH issue submission de…
2018-06-07 15:03:34 +01:00
Boro Sitnikovski aac0f30a2a Use correct textdomain 2018-06-07 15:40:48 +02:00
Boro Sitnikovski c053eded70 Merge branch 'master' into add/version-picking 2018-06-07 15:34:52 +02:00
Boro Sitnikovski e345e1bb54 Include information about plugins/theme in the GH issue submission description 2018-06-07 15:16:27 +02:00
Boro Sitnikovski cd42593bc4 Merge pull request woocommerce/woocommerce-beta-tester#41 from woocommerce/tweak/plugin-row-actions
Introduce row actions for the plugin
2018-06-07 14:47:40 +02:00
Boro Sitnikovski 0e1410590d Update class-wc-beta-tester.php 2018-06-07 14:47:30 +02:00
Boro Sitnikovski 66e78a47d8 Introduce row actions for the plugin 2018-06-07 14:18:29 +02:00
Mike Jolley 3a31bd10fd Edit text nodes 2018-06-07 12:55:40 +01:00
Peter Fabian cc2368a763 Code review updates. 2018-06-07 13:12:53 +02:00
Mike Jolley 96e612ebdd Update readme file 2018-06-07 12:11:40 +01:00
Boro Sitnikovski e7ae24135e Merge pull request woocommerce/woocommerce-beta-tester#36 from woocommerce/tweak/pre-release-information
Initial implementation for including additional pre-release information
2018-06-07 12:10:24 +02:00
Boro Sitnikovski 8e8f2389aa Wrap notes in autop and make_clickable 2018-06-07 12:10:11 +02:00
Boro Sitnikovski 0862d365e7 Use hour in seconds 2018-06-07 11:24:38 +02:00
Boro Sitnikovski b27c5022ab Don't invoke singleton on the very same class 2018-06-07 11:17:45 +02:00
Boro Sitnikovski b9f15ac1f6 Still include new tab in case description is not set 2018-06-07 10:55:37 +02:00
Boro Sitnikovski 8447cdbf3d Initial implementation for including additional pre-release information 2018-06-07 10:52:33 +02:00
Peter Fabian e01792d90a Fixed a mistake in merge. 2018-06-06 23:21:58 +02:00
Peter Fabian 80b19f5a47 Switched from raw wp options to settings from beta tester class. 2018-06-06 23:20:40 +02:00
Peter Fabian 3e75307f33 Merge branch 'master' into add/version-picking 2018-06-06 23:19:25 +02:00
Peter Fabian 68d1f3898f Fixed formatting error introduced by editing on GitHub. 2018-06-06 18:32:19 +02:00
Peter Fabian 06e92b78e9 Merge branch 'master' into add/version-picking 2018-06-06 18:30:41 +02:00
Peter Fabian 45a7658c1f Added Backbone modal to switching versions. 2018-06-06 18:26:48 +02:00
Mike Jolley ac0b56e6cc auto_update_plugin filter 2018-06-06 16:18:34 +01:00
Mike Jolley 04946ed0a4 Add settings 2018-06-06 16:14:32 +01:00
Claudio Sanches 7a17bc4a01 Merge pull request woocommerce/woocommerce-beta-tester#33 from woocommerce/update/channel-settings-radio
Use radio inputs for settings
2018-06-06 11:27:31 -03:00
Mike Jolley 814b587ad7 Use radio inputs 2018-06-06 15:14:27 +01:00
Peter Fabian ee0b9a6db1 Merge branch 'master' into add/version-picking 2018-06-06 15:52:26 +02:00
Boro Sitnikovski 42033eefd7 Merge pull request woocommerce/woocommerce-beta-tester#32 from woocommerce/tweak/version-switch-modal
Initial implementation for version switch modal
2018-06-06 15:35:23 +02:00
Boro Sitnikovski feda5ad5d2 Get WC version programmatically by using the constant 2018-06-06 15:35:00 +02:00
Mike Jolley 1fd5e7aa7f Merge pull request woocommerce/woocommerce-beta-tester#30 from woocommerce/feature/18
Display notices to install and enable WooCommerce
2018-06-06 14:34:01 +01:00
Mike Jolley 8e028c3b6c Update translation string 2018-06-06 14:33:41 +01:00
Boro Sitnikovski 3040c55667 Correct docblock 2018-06-06 14:32:49 +02:00