Skip to content

Commit

Permalink
Fixxed required version
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Apr 10, 2017
1 parent eb2c6bc commit 0f4580d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "woocommerce-payment-discounts",
"description": "WooCommerce Discounts Per Payment Method",
"version": "2.3.0",
"version": "3.0.0",
"main": "Gruntfile.js",
"devDependencies": {
"grunt": "^1.0.1",
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-payment-discounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private function __construct() {
// Load plugin text domain.
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );

if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.7', '>=' ) ) {
if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '3.0', '>=' ) ) {
$this->includes();

if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
Expand Down Expand Up @@ -105,7 +105,7 @@ public function load_plugin_textdomain() {
* @return string Admin notice.
*/
public function woocommerce_is_missing_notice() {
echo '<div class="error"><p><strong>' . __( 'WooCommerce Discounts Per Payment Method', 'woocommerce-payment-discounts' ) . '</strong> ' . sprintf( __( 'works only with %s 2.7 or later, please install or upgrade your installation!', 'woocommerce-payment-discounts' ), '<a href="http://wordpress.org/plugins/woocommerce/">' . __( 'WooCommerce', 'woocommerce-payment-discounts' ) . '</a>' ) . '</p></div>';
echo '<div class="error"><p><strong>' . __( 'WooCommerce Discounts Per Payment Method', 'woocommerce-payment-discounts' ) . '</strong> ' . sprintf( __( 'works only with %s 3.0 or later, please install or upgrade your installation!', 'woocommerce-payment-discounts' ), '<a href="http://wordpress.org/plugins/woocommerce/">' . __( 'WooCommerce', 'woocommerce-payment-discounts' ) . '</a>' ) . '</p></div>';
}
}

Expand Down

0 comments on commit 0f4580d

Please sign in to comment.