Easy Digital Downloads - Version 2.7.1

Version Description

Download this release

Release Info

Developer cklosows
Plugin Icon 128x128 Easy Digital Downloads
Version 2.7.1
Comparing to
See all releases

Code changes from version 2.7 to 2.7.1

easy-digital-downloads.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Easy Digital Downloads
7
  * Author URI: https://easydigitaldownloads.com
8
- * Version: 2.7
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
@@ -25,7 +25,7 @@
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
- * @version 2.7
29
  */
30
 
31
  // Exit if accessed directly.
@@ -206,7 +206,7 @@ final class Easy_Digital_Downloads {
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
- define( 'EDD_VERSION', '2.7' );
210
  }
211
 
212
  // Plugin Folder Path.
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Easy Digital Downloads
7
  * Author URI: https://easydigitaldownloads.com
8
+ * Version: 2.7.1
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
+ * @version 2.7.1
29
  */
30
 
31
  // Exit if accessed directly.
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
+ define( 'EDD_VERSION', '2.7.1' );
210
  }
211
 
212
  // Plugin Folder Path.
includes/admin/plugins.php CHANGED
@@ -54,7 +54,6 @@ function edd_plugin_row_meta( $input, $file ) {
54
  );
55
 
56
  $links = array(
57
- '<a href="' . admin_url( 'index.php?page=edd-getting-started' ) . '">' . esc_html__( 'Getting Started', 'easy-digital-downloads' ) . '</a>',
58
  '<a href="' . $edd_link . '">' . esc_html__( 'Extensions', 'easy-digital-downloads' ) . '</a>',
59
  );
60
 
54
  );
55
 
56
  $links = array(
 
57
  '<a href="' . $edd_link . '">' . esc_html__( 'Extensions', 'easy-digital-downloads' ) . '</a>',
58
  );
59
 
includes/admin/settings/register-settings.php CHANGED
@@ -2179,7 +2179,7 @@ if ( ! function_exists( 'edd_license_key_callback' ) ) {
2179
 
2180
  $class = 'error';
2181
  $error = ! empty( $license->error ) ? $license->error : __( 'unknown_error', 'easy-digital-downloads' );
2182
- $messages[] = sprintf( __( 'There was an error with this license key: %s. Please <a href="%s">contact our support team</a>.', 'easy-digital-downloads' ), $error, 'https://easydigitaldownlaods.com/support' );
2183
 
2184
  $license_status = 'license-' . $class . '-notice';
2185
  break;
2179
 
2180
  $class = 'error';
2181
  $error = ! empty( $license->error ) ? $license->error : __( 'unknown_error', 'easy-digital-downloads' );
2182
+ $messages[] = sprintf( __( 'There was an error with this license key: %s. Please <a href="%s">contact our support team</a>.', 'easy-digital-downloads' ), $error, 'https://easydigitaldownloads.com/support' );
2183
 
2184
  $license_status = 'license-' . $class . '-notice';
2185
  break;
includes/cart/class-edd-cart.php CHANGED
@@ -135,6 +135,7 @@ class EDD_Cart {
135
  $this->get_contents_from_session();
136
  $this->get_contents();
137
  $this->get_contents_details();
 
138
  $this->get_discounts_from_session();
139
  $this->quantity = $this->get_quantity();
140
  }
@@ -1179,8 +1180,11 @@ class EDD_Cart {
1179
  */
1180
  public function get_total_fees() {
1181
  $fee_total = 0.00;
1182
- foreach ( $this->fees as $fee ) {
1183
- if ( ! empty( $fee['download_id'] ) && $fee['amount'] <= 0 ) {
 
 
 
1184
  continue;
1185
  }
1186
 
135
  $this->get_contents_from_session();
136
  $this->get_contents();
137
  $this->get_contents_details();
138
+ $this->get_all_fees();
139
  $this->get_discounts_from_session();
140
  $this->quantity = $this->get_quantity();
141
  }
1180
  */
1181
  public function get_total_fees() {
1182
  $fee_total = 0.00;
1183
+
1184
+ foreach ( $this->get_fees() as $fee ) {
1185
+
1186
+ // Since fees affect cart item totals, we need to not count them towards the cart total if there is an association.
1187
+ if ( ! empty( $fee['download_id'] ) ) {
1188
  continue;
1189
  }
1190
 
includes/class-edd-discount.php CHANGED
@@ -280,7 +280,7 @@ class EDD_Discount {
280
 
281
  // Dispatch to setter method if value needs to be sanitized
282
  if ( method_exists( $this, 'set_' . $key ) ) {
283
- return call_user_func( array( $this, 's et_' . $key ), $key, $value );
284
  } else {
285
  $this->{$key} = $value;
286
  }
@@ -1947,4 +1947,4 @@ class EDD_Discount {
1947
  public function edit_url() {
1948
  return esc_url( add_query_arg( array( 'edd-action' => 'edit_discount', 'discount' => $this->ID ), admin_url( 'edit.php?post_type=download&page=edd-discounts' ) ) );
1949
  }
1950
- }
280
 
281
  // Dispatch to setter method if value needs to be sanitized
282
  if ( method_exists( $this, 'set_' . $key ) ) {
283
+ return call_user_func( array( $this, 'set_' . $key ), $key, $value );
284
  } else {
285
  $this->{$key} = $value;
286
  }
1947
  public function edit_url() {
1948
  return esc_url( add_query_arg( array( 'edd-action' => 'edit_discount', 'discount' => $this->ID ), admin_url( 'edit.php?post_type=download&page=edd-discounts' ) ) );
1949
  }
1950
+ }
includes/class-edd-fees.php CHANGED
@@ -83,7 +83,7 @@ class EDD_Fees {
83
 
84
  }
85
 
86
- //If the fee is for an "item" but we passed in a download id
87
  if( 'item' === $args['type'] && ! empty( $args['download_id'] ) ) {
88
  unset( $args['download_id'] );
89
  unset( $args['price_id'] );
83
 
84
  }
85
 
86
+ // If the fee is for an "item" but we passed in a download id
87
  if( 'item' === $args['type'] && ! empty( $args['download_id'] ) ) {
88
  unset( $args['download_id'] );
89
  unset( $args['price_id'] );
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://easydigitaldownloads.com/donate/
6
  Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce
7
  Requires at least: 4.0
8
  Tested up to: 4.8
9
- Stable Tag: 2.7
10
 
11
  License: GNU Version 2 or Any Later Version
12
 
@@ -194,6 +194,12 @@ Yes, through the addition of one or more of the add-on payment gateways, you can
194
 
195
  == Changelog ==
196
 
 
 
 
 
 
 
197
  = 2.7, February 13, 2017 =
198
  * New: Introduced EDD_Cart class for managing the shopping cart contents.
199
  * New: Redesigned and improved functionality of the purchased downloads when viewing a payment.
6
  Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce
7
  Requires at least: 4.0
8
  Tested up to: 4.8
9
+ Stable Tag: 2.7.1
10
 
11
  License: GNU Version 2 or Any Later Version
12
 
194
 
195
  == Changelog ==
196
 
197
+ = 2.7.1, February 14, 2017 =
198
+ * Fix: Checkout was showing wrong total price when certain fees were applied to the cart.
199
+ * Fix: Plugin row meta linked to non-existent "Getting Started" page.
200
+ * Fix: There was a typo in the link to our site when showing an error message for a license key.
201
+ * Fix: Incorrect function name in new EDD_Discount class was being checked.
202
+
203
  = 2.7, February 13, 2017 =
204
  * New: Introduced EDD_Cart class for managing the shopping cart contents.
205
  * New: Redesigned and improved functionality of the purchased downloads when viewing a payment.