Skip to content
This repository was archived by the owner on Oct 4, 2019. It is now read-only.

Commit a6c02b3

Browse files
author
Justin Shreve
authored
Revert "Add hotfix that prevents the cheque payment method from being auto-enabled. (#33)" (#35)
This reverts commit c796c3d.
1 parent c796c3d commit a6c02b3

File tree

5 files changed

+3
-40
lines changed

5 files changed

+3
-40
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,3 @@ When creating a public release, do the following:
2525
* Post your changelog notes in the description of the release.
2626
* Create & attach a binary containing a zip for the latest plugin version. The binary name should be `wc-api-dev.zip`. Please double check that the folder inside the archive is also called `wc-api-dev` and not something like `wc-api-dev-###hash` or `wc-api-dev-master`. You can create this binary by downloading a zip from GitHub, unzipping, and renaming the folder.
2727
* Publish your release.
28-
29-
## Translation
30-
31-
For strings located in API endpoints, use `woocommerce` as your text-domain. These endpoints will at some point be merged back into WooCommerce Core.
32-
33-
For other changes (such as the `hotfixes/` folder, which is being used to power an in-development interface for managing stores on WordPress.com) that are not to be merged into core, you can use `wc-api-dev` as your text-domain. These will most likely be split-out into a separate plugin soon.

hotfixes/wc-api-dev-cheque-defaults.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

readme.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ This section describes how to install the plugin and get it working.
2525

2626
== Changelog ==
2727

28-
= 0.8.1 =
29-
* Fix - Don't auto enable the cheque payment method.
30-
* Adds a new config constant (WC_API_DEV_ENABLE_HOTFIXES) to make it easy to disable hotfixes.
31-
3228
= 0.8.0 =
3329
* Update orders endpoint to accept multiple statuses
3430
* Fix - Email subject and footers becoming out of sync

tests/bootstrap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public function load_wc() {
7070
* Load WC API Dev.
7171
*/
7272
public function load_wc_api_dev() {
73-
define( 'WC_API_DEV_ENABLE_HOTFIXES', false );
7473
require_once( $this->plugin_dir . '/wc-api-dev.php' );
7574
}
7675

wc-api-dev.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WooCommerce API Dev
44
* Plugin URI: https://woocommerce.com/
55
* Description: A feature plugin providing a bleeding edge version of the WooCommerce REST API.
6-
* Version: 0.8.1
6+
* Version: 0.8.0
77
* Author: Automattic
88
* Author URI: https://woocommerce.com
99
* Requires at least: 4.4
@@ -15,10 +15,6 @@
1515
define( 'WC_API_DEV_AUTO_UPDATE', true );
1616
}
1717

18-
if ( ! defined( 'WC_API_DEV_ENABLE_HOTFIXES' ) ){
19-
define( 'WC_API_DEV_ENABLE_HOTFIXES', true );
20-
}
21-
2218
if ( defined( 'WC_API_DEV_AUTO_UPDATE' ) && true === WC_API_DEV_AUTO_UPDATE ) {
2319
include_once( plugin_dir_path( __FILE__ ) . 'auto-update.php' );
2420
new WC_API_Dev_Updater;
@@ -123,11 +119,8 @@ public function includes() {
123119
include_once( dirname( __FILE__ ) . '/api/class-wc-rest-dev-payment-gateways-controller.php' );
124120

125121
// Things that aren't related to a specific endpoint but to things like cross-plugin compatibility
126-
if ( defined( 'WC_API_DEV_ENABLE_HOTFIXES' ) && true === WC_API_DEV_ENABLE_HOTFIXES ) {
127-
include_once( dirname( __FILE__ ) . '/hotfixes/wc-api-dev-jetpack-hotfixes.php' );
128-
include_once( dirname( __FILE__ ) . '/hotfixes/wc-api-dev-email-site-title.php' );
129-
include_once( dirname( __FILE__ ) . '/hotfixes/wc-api-dev-cheque-defaults.php' );
130-
}
122+
include_once( dirname( __FILE__ ) . '/hotfixes/wc-api-dev-jetpack-hotfixes.php' );
123+
include_once( dirname( __FILE__ ) . '/hotfixes/wc-api-dev-email-site-title.php' );
131124
}
132125

133126
/**

0 commit comments

Comments
 (0)