Easy Digital Downloads - Version 2.7.11

Version Description

Download this release

Release Info

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

Code changes from version 2.7.10 to 2.7.11

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.10
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.10
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.10' );
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.11
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.11
29
  */
30
 
31
  // Exit if accessed directly.
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
+ define( 'EDD_VERSION', '2.7.11' );
210
  }
211
 
212
  // Plugin Folder Path.
includes/admin/admin-footer.php CHANGED
@@ -24,9 +24,9 @@ function edd_admin_rate_us( $footer_text ) {
24
  global $typenow;
25
 
26
  if ( $typenow == 'download' ) {
27
- $rate_text = sprintf( __( 'Thank you for using <a href="%1$s" target="_blank">Easy Digital Downloads</a>! Please <a href="%2$s" target="_blank">rate us</a> on <a href="%2$s" target="_blank">WordPress.org</a>', 'easy-digital-downloads' ),
28
  'https://easydigitaldownloads.com',
29
- 'https://wordpress.org/support/view/plugin-reviews/easy-digital-downloads?filter=5#postform'
30
  );
31
 
32
  return str_replace( '</span>', '', $footer_text ) . ' | ' . $rate_text . '</span>';
24
  global $typenow;
25
 
26
  if ( $typenow == 'download' ) {
27
+ $rate_text = sprintf( __( 'Thank you for using <a href="%1$s" target="_blank">Easy Digital Downloads</a>! Please <a href="%2$s" target="_blank">rate us on WordPress.org</a>', 'easy-digital-downloads' ),
28
  'https://easydigitaldownloads.com',
29
+ 'https://wordpress.org/support/plugin/easy-digital-downloads/reviews/?rate=5#new-post'
30
  );
31
 
32
  return str_replace( '</span>', '', $footer_text ) . ' | ' . $rate_text . '</span>';
includes/admin/reporting/graphing.php CHANGED
@@ -806,6 +806,7 @@ function edd_get_report_dates() {
806
  $dates['m_end'] = date( 'n' ) - 1;
807
  $dates['year_end'] = $dates['year'];
808
  }
 
809
  $dates['day_end'] = cal_days_in_month( CAL_GREGORIAN, $dates['m_end'], $dates['year'] );
810
  break;
811
 
806
  $dates['m_end'] = date( 'n' ) - 1;
807
  $dates['year_end'] = $dates['year'];
808
  }
809
+ $dates['day'] = 1;
810
  $dates['day_end'] = cal_days_in_month( CAL_GREGORIAN, $dates['m_end'], $dates['year'] );
811
  break;
812
 
includes/gateways/amazon-payments.php CHANGED
@@ -180,7 +180,7 @@ final class EDD_Amazon_Payments {
180
 
181
  add_action( 'wp_enqueue_scripts', array( $this, 'print_client' ), 10 );
182
  add_action( 'wp_enqueue_scripts', array( $this, 'load_scripts' ), 11 );
183
- add_action( 'init', array( $this, 'check_config' ), 1 );
184
  add_action( 'init', array( $this, 'capture_oauth' ), 9 );
185
  add_action( 'init', array( $this, 'signin_redirect' ) );
186
  add_action( 'edd_purchase_form_before_register_login', array( $this, 'login_form' ) );
@@ -207,7 +207,7 @@ final class EDD_Amazon_Payments {
207
  */
208
  public function check_config() {
209
  $is_enabled = edd_is_gateway_active( $this->gateway_id );
210
- if ( ! $is_enabled || false === $this->is_setup() ) {
211
  edd_set_error( 'amazon_gateway_not_configured', __( 'There is an error with the Amazon Payments configuration.', 'easy-digital-downloads' ) );
212
  }
213
  }
180
 
181
  add_action( 'wp_enqueue_scripts', array( $this, 'print_client' ), 10 );
182
  add_action( 'wp_enqueue_scripts', array( $this, 'load_scripts' ), 11 );
183
+ add_action( 'edd_pre_process_purchase', array( $this, 'check_config' ), 1 );
184
  add_action( 'init', array( $this, 'capture_oauth' ), 9 );
185
  add_action( 'init', array( $this, 'signin_redirect' ) );
186
  add_action( 'edd_purchase_form_before_register_login', array( $this, 'login_form' ) );
207
  */
208
  public function check_config() {
209
  $is_enabled = edd_is_gateway_active( $this->gateway_id );
210
+ if ( ( ! $is_enabled || false === $this->is_setup() ) && 'amazon' == edd_get_chosen_gateway() ) {
211
  edd_set_error( 'amazon_gateway_not_configured', __( 'There is an error with the Amazon Payments configuration.', 'easy-digital-downloads' ) );
212
  }
213
  }
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, ecommerce, ebook
7
  Requires at least: 4.0
8
  Tested up to: 4.8
9
- Stable Tag: 2.7.10
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
@@ -213,10 +213,15 @@ Yes. Easy Digital Downloads also includes default support for Amazon Payments an
213
 
214
  == Changelog ==
215
 
 
 
 
 
 
 
216
  = 2.7.10, June 12, 2017 =
217
 
218
  * Fix: Plugin Compatibility: Improve file download reliability when Really Simple SSL Mixed Content Filter is active.
219
- * Fix: Start date not set properly in reports all pre-set ranges.
220
 
221
  = 2.7.9, May 11, 2017 =
222
 
6
  Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce, ecommerce, ebook
7
  Requires at least: 4.0
8
  Tested up to: 4.8
9
+ Stable Tag: 2.7.11
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
213
 
214
  == Changelog ==
215
 
216
+ = 2.7.11, June 21, 2017 =
217
+
218
+ * Fix: Amazon Payments had errors being displayed at incorrect times.
219
+ * Fix: Start date not set properly in reports all pre-set ranges.
220
+ * Tweak: Fix URL for the "Rate Us" link.
221
+
222
  = 2.7.10, June 12, 2017 =
223
 
224
  * Fix: Plugin Compatibility: Improve file download reliability when Really Simple SSL Mixed Content Filter is active.
 
225
 
226
  = 2.7.9, May 11, 2017 =
227