Easy Digital Downloads - Version 2.9.19

Version Description

Download this release

Release Info

Developer johnstonphilip
Plugin Icon 128x128 Easy Digital Downloads
Version 2.9.19
Comparing to
See all releases

Code changes from version 2.9.18 to 2.9.19

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.9.18
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.9.18
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.9.18' );
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.9.19
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
+ * @version 2.9.19
29
  */
30
 
31
  // Exit if accessed directly.
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
+ define( 'EDD_VERSION', '2.9.19' );
210
  }
211
 
212
  // Plugin Folder Path.
includes/class-edd-register-meta.php CHANGED
@@ -69,6 +69,7 @@ class EDD_Register_Meta {
69
  'post',
70
  '_edd_download_earnings',
71
  array(
 
72
  'sanitize_callback' => 'edd_sanitize_amount',
73
  'type' => 'float',
74
  'description' => __( 'The total earnings for the specified product', 'easy-digital-downloads' ),
@@ -84,6 +85,7 @@ class EDD_Register_Meta {
84
  'post',
85
  '_edd_download_sales',
86
  array(
 
87
  'sanitize_callback' => array( $this, 'intval_wrapper' ),
88
  'type' => 'float',
89
  'description' => __( 'The number of sales for the specified product.', 'easy-digital-downloads' ),
@@ -98,6 +100,7 @@ class EDD_Register_Meta {
98
  'post',
99
  'edd_price',
100
  array(
 
101
  'sanitize_callback' => array( $this, 'sanitize_price' ),
102
  'type' => 'float',
103
  'description' => __( 'The price of the product.', 'easy-digital-downloads' ),
@@ -117,6 +120,7 @@ class EDD_Register_Meta {
117
  'post',
118
  'edd_variable_prices',
119
  array(
 
120
  'sanitize_callback' => array( $this, 'sanitize_variable_prices' ),
121
  'single' => true,
122
  'type' => 'object',
@@ -153,6 +157,7 @@ class EDD_Register_Meta {
153
  'post',
154
  'edd_download_files',
155
  array(
 
156
  'sanitize_callback' => array( $this, 'sanitize_files' ),
157
  'type' => 'array',
158
  'description' => __( 'The files associated with the product, available for download.', 'easy-digital-downloads' ),
@@ -167,6 +172,7 @@ class EDD_Register_Meta {
167
  'post',
168
  '_edd_bundled_products',
169
  array(
 
170
  'sanitize_callback' => array( $this, 'sanitize_array' ),
171
  'single' => true,
172
  'type' => 'array',
@@ -190,6 +196,7 @@ class EDD_Register_Meta {
190
  'post',
191
  '_edd_button_behavior',
192
  array(
 
193
  'sanitize_callback' => 'sanitize_text_field',
194
  'type' => 'string',
195
  'description' => __( "Defines how this product's 'Purchase' button should behave, either add to cart or buy now", 'easy-digital-downloads' ),
@@ -205,6 +212,7 @@ class EDD_Register_Meta {
205
  'post',
206
  '_edd_default_price_id',
207
  array(
 
208
  'sanitize_callback' => array( $this, 'intval_wrapper' ),
209
  'type' => 'int',
210
  'description' => __( 'When variable pricing is enabled, this value defines which option should be chosen by default.', 'easy-digital-downloads' ),
@@ -230,6 +238,7 @@ class EDD_Register_Meta {
230
  'post',
231
  '_edd_payment_user_email',
232
  array(
 
233
  'sanitize_callback' => 'sanitize_email',
234
  'type' => 'string',
235
  'description' => __( 'The email address associated with the purchase.', 'easy-digital-downloads' ),
@@ -245,6 +254,7 @@ class EDD_Register_Meta {
245
  'post',
246
  '_edd_payment_customer_id',
247
  array(
 
248
  'sanitize_callback' => array( $this, 'intval_wrapper' ),
249
  'type' => 'int',
250
  'description' => __( 'The Customer ID associated with the payment.', 'easy-digital-downloads' ),
@@ -259,6 +269,7 @@ class EDD_Register_Meta {
259
  'post',
260
  '_edd_payment_user_id',
261
  array(
 
262
  'sanitize_callback' => array( $this, 'intval_wrapper' ),
263
  'type' => 'int',
264
  'description' => __( 'The User ID associated with the payment.', 'easy-digital-downloads' ),
69
  'post',
70
  '_edd_download_earnings',
71
  array(
72
+ 'object_subtype' => 'download',
73
  'sanitize_callback' => 'edd_sanitize_amount',
74
  'type' => 'float',
75
  'description' => __( 'The total earnings for the specified product', 'easy-digital-downloads' ),
85
  'post',
86
  '_edd_download_sales',
87
  array(
88
+ 'object_subtype' => 'download',
89
  'sanitize_callback' => array( $this, 'intval_wrapper' ),
90
  'type' => 'float',
91
  'description' => __( 'The number of sales for the specified product.', 'easy-digital-downloads' ),
100
  'post',
101
  'edd_price',
102
  array(
103
+ 'object_subtype' => 'download',
104
  'sanitize_callback' => array( $this, 'sanitize_price' ),
105
  'type' => 'float',
106
  'description' => __( 'The price of the product.', 'easy-digital-downloads' ),
120
  'post',
121
  'edd_variable_prices',
122
  array(
123
+ 'object_subtype' => 'download',
124
  'sanitize_callback' => array( $this, 'sanitize_variable_prices' ),
125
  'single' => true,
126
  'type' => 'object',
157
  'post',
158
  'edd_download_files',
159
  array(
160
+ 'object_subtype' => 'download',
161
  'sanitize_callback' => array( $this, 'sanitize_files' ),
162
  'type' => 'array',
163
  'description' => __( 'The files associated with the product, available for download.', 'easy-digital-downloads' ),
172
  'post',
173
  '_edd_bundled_products',
174
  array(
175
+ 'object_subtype' => 'download',
176
  'sanitize_callback' => array( $this, 'sanitize_array' ),
177
  'single' => true,
178
  'type' => 'array',
196
  'post',
197
  '_edd_button_behavior',
198
  array(
199
+ 'object_subtype' => 'download',
200
  'sanitize_callback' => 'sanitize_text_field',
201
  'type' => 'string',
202
  'description' => __( "Defines how this product's 'Purchase' button should behave, either add to cart or buy now", 'easy-digital-downloads' ),
212
  'post',
213
  '_edd_default_price_id',
214
  array(
215
+ 'object_subtype' => 'download',
216
  'sanitize_callback' => array( $this, 'intval_wrapper' ),
217
  'type' => 'int',
218
  'description' => __( 'When variable pricing is enabled, this value defines which option should be chosen by default.', 'easy-digital-downloads' ),
238
  'post',
239
  '_edd_payment_user_email',
240
  array(
241
+ 'object_subtype' => 'edd_payment',
242
  'sanitize_callback' => 'sanitize_email',
243
  'type' => 'string',
244
  'description' => __( 'The email address associated with the purchase.', 'easy-digital-downloads' ),
254
  'post',
255
  '_edd_payment_customer_id',
256
  array(
257
+ 'object_subtype' => 'edd_payment',
258
  'sanitize_callback' => array( $this, 'intval_wrapper' ),
259
  'type' => 'int',
260
  'description' => __( 'The Customer ID associated with the payment.', 'easy-digital-downloads' ),
269
  'post',
270
  '_edd_payment_user_id',
271
  array(
272
+ 'object_subtype' => 'edd_payment',
273
  'sanitize_callback' => array( $this, 'intval_wrapper' ),
274
  'type' => 'int',
275
  'description' => __( 'The User ID associated with the payment.', 'easy-digital-downloads' ),
languages/easy-digital-downloads.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Easy Digital Downloads package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Easy Digital Downloads 2.9.18\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
- "POT-Creation-Date: 2019-10-21 21:05:25+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -5968,85 +5968,85 @@ msgstr ""
5968
  msgid "Enter valid license key for automatic updates."
5969
  msgstr ""
5970
 
5971
- #: includes/class-edd-register-meta.php:74
5972
  msgid "The total earnings for the specified product"
5973
  msgstr ""
5974
 
5975
- #: includes/class-edd-register-meta.php:89
5976
  msgid "The number of sales for the specified product."
5977
  msgstr ""
5978
 
5979
- #: includes/class-edd-register-meta.php:103
5980
  msgid "The price of the product."
5981
  msgstr ""
5982
 
5983
- #: includes/class-edd-register-meta.php:123
5984
  msgid "An array of variable prices for the product."
5985
  msgstr ""
5986
 
5987
- #: includes/class-edd-register-meta.php:158
5988
  msgid "The files associated with the product, available for download."
5989
  msgstr ""
5990
 
5991
- #: includes/class-edd-register-meta.php:173
5992
  msgid "An array of product IDs to associate with a bundle."
5993
  msgstr ""
5994
 
5995
- #: includes/class-edd-register-meta.php:195
5996
  msgid ""
5997
  "Defines how this product's 'Purchase' button should behave, either add to "
5998
  "cart or buy now"
5999
  msgstr ""
6000
 
6001
- #: includes/class-edd-register-meta.php:210
6002
  msgid ""
6003
  "When variable pricing is enabled, this value defines which option should be "
6004
  "chosen by default."
6005
  msgstr ""
6006
 
6007
- #: includes/class-edd-register-meta.php:235
6008
  msgid "The email address associated with the purchase."
6009
  msgstr ""
6010
 
6011
- #: includes/class-edd-register-meta.php:250
6012
  msgid "The Customer ID associated with the payment."
6013
  msgstr ""
6014
 
6015
- #: includes/class-edd-register-meta.php:264
6016
  msgid "The User ID associated with the payment."
6017
  msgstr ""
6018
 
6019
- #: includes/class-edd-register-meta.php:278
6020
  msgid "The IP address the payment was made from."
6021
  msgstr ""
6022
 
6023
- #: includes/class-edd-register-meta.php:292
6024
  msgid "The unique purchase key for this payment."
6025
  msgstr ""
6026
 
6027
- #: includes/class-edd-register-meta.php:306
6028
  msgid "The purchase total for this payment."
6029
  msgstr ""
6030
 
6031
- #: includes/class-edd-register-meta.php:320
6032
  msgid "Identifies if the purchase was made in Test or Live mode."
6033
  msgstr ""
6034
 
6035
- #: includes/class-edd-register-meta.php:334
6036
  msgid "The registered gateway that was used to process this payment."
6037
  msgstr ""
6038
 
6039
- #: includes/class-edd-register-meta.php:348
6040
  msgid ""
6041
  "Array of payment meta that contains cart details, downloads, amounts, "
6042
  "taxes, discounts, and subtotals, etc."
6043
  msgstr ""
6044
 
6045
- #: includes/class-edd-register-meta.php:362
6046
  msgid "The total amount of tax paid for this payment."
6047
  msgstr ""
6048
 
6049
- #: includes/class-edd-register-meta.php:376
6050
  msgid "The date this payment was changed to the `completed` status."
6051
  msgstr ""
6052
 
2
  # This file is distributed under the same license as the Easy Digital Downloads package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Easy Digital Downloads 2.9.19\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
+ "POT-Creation-Date: 2019-10-28 20:14:59+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
5968
  msgid "Enter valid license key for automatic updates."
5969
  msgstr ""
5970
 
5971
+ #: includes/class-edd-register-meta.php:75
5972
  msgid "The total earnings for the specified product"
5973
  msgstr ""
5974
 
5975
+ #: includes/class-edd-register-meta.php:91
5976
  msgid "The number of sales for the specified product."
5977
  msgstr ""
5978
 
5979
+ #: includes/class-edd-register-meta.php:106
5980
  msgid "The price of the product."
5981
  msgstr ""
5982
 
5983
+ #: includes/class-edd-register-meta.php:127
5984
  msgid "An array of variable prices for the product."
5985
  msgstr ""
5986
 
5987
+ #: includes/class-edd-register-meta.php:163
5988
  msgid "The files associated with the product, available for download."
5989
  msgstr ""
5990
 
5991
+ #: includes/class-edd-register-meta.php:179
5992
  msgid "An array of product IDs to associate with a bundle."
5993
  msgstr ""
5994
 
5995
+ #: includes/class-edd-register-meta.php:202
5996
  msgid ""
5997
  "Defines how this product's 'Purchase' button should behave, either add to "
5998
  "cart or buy now"
5999
  msgstr ""
6000
 
6001
+ #: includes/class-edd-register-meta.php:218
6002
  msgid ""
6003
  "When variable pricing is enabled, this value defines which option should be "
6004
  "chosen by default."
6005
  msgstr ""
6006
 
6007
+ #: includes/class-edd-register-meta.php:244
6008
  msgid "The email address associated with the purchase."
6009
  msgstr ""
6010
 
6011
+ #: includes/class-edd-register-meta.php:260
6012
  msgid "The Customer ID associated with the payment."
6013
  msgstr ""
6014
 
6015
+ #: includes/class-edd-register-meta.php:275
6016
  msgid "The User ID associated with the payment."
6017
  msgstr ""
6018
 
6019
+ #: includes/class-edd-register-meta.php:289
6020
  msgid "The IP address the payment was made from."
6021
  msgstr ""
6022
 
6023
+ #: includes/class-edd-register-meta.php:303
6024
  msgid "The unique purchase key for this payment."
6025
  msgstr ""
6026
 
6027
+ #: includes/class-edd-register-meta.php:317
6028
  msgid "The purchase total for this payment."
6029
  msgstr ""
6030
 
6031
+ #: includes/class-edd-register-meta.php:331
6032
  msgid "Identifies if the purchase was made in Test or Live mode."
6033
  msgstr ""
6034
 
6035
+ #: includes/class-edd-register-meta.php:345
6036
  msgid "The registered gateway that was used to process this payment."
6037
  msgstr ""
6038
 
6039
+ #: includes/class-edd-register-meta.php:359
6040
  msgid ""
6041
  "Array of payment meta that contains cart details, downloads, amounts, "
6042
  "taxes, discounts, and subtotals, etc."
6043
  msgstr ""
6044
 
6045
+ #: includes/class-edd-register-meta.php:373
6046
  msgid "The total amount of tax paid for this payment."
6047
  msgstr ""
6048
 
6049
+ #: includes/class-edd-register-meta.php:387
6050
  msgid "The date this payment was changed to the `completed` status."
6051
  msgstr ""
6052
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://easydigitaldownloads.com/donate/
6
  Tags: ecommerce, e-commerce, sell, downloads, store, paypal, checkout, shop
7
  Requires at least: 4.4
8
  Tested up to: 5.2.3
9
- Stable Tag: 2.9.18
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
@@ -188,6 +188,9 @@ Yes. Easy Digital Downloads also includes default support for Amazon Payments an
188
  9. Checkout screen
189
 
190
  == Changelog ==
 
 
 
191
  = 2.9.18, October 21, 2019 =
192
  * Fix: Updated calls to register_meta for WordPress 5.3 compatibility.
193
  * Fix: Refactored edd_get_payment_status to work when Payment statuses are translated.
6
  Tags: ecommerce, e-commerce, sell, downloads, store, paypal, checkout, shop
7
  Requires at least: 4.4
8
  Tested up to: 5.2.3
9
+ Stable Tag: 2.9.19
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
188
  9. Checkout screen
189
 
190
  == Changelog ==
191
+ = 2.9.19, October 28, 2019 =
192
+ * Fix: Limit register_meta calls to be for the download post type only, in preparation for WordPress 5.3 compatibility.
193
+
194
  = 2.9.18, October 21, 2019 =
195
  * Fix: Updated calls to register_meta for WordPress 5.3 compatibility.
196
  * Fix: Refactored edd_get_payment_status to work when Payment statuses are translated.