{"id":647,"date":"2018-07-09T18:10:20","date_gmt":"2018-07-09T23:10:20","guid":{"rendered":"https:\/\/easydigitaldownloads.com\/development\/?p=647"},"modified":"2021-12-15T15:30:54","modified_gmt":"2021-12-15T21:30:54","slug":"important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4","status":"publish","type":"post","link":"https:\/\/easydigitaldownloads.com\/development\/2018\/07\/09\/important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4\/","title":{"rendered":"Important update to AJAX requests in Easy Digital Downloads 2.9.4"},"content":{"rendered":"<p>Version 2.9.4 of Easy Digital Downloads includes some important updates related to a few of our templates and sections that can be customized. These updates\u00a0<em>may<\/em> require changes to stores that have modified these sections. The changes, specifically were adding nonce values to actions. These nonces are now required as of version 2.9.4 and without them, critical functionality can fail. Below is a list of the nonces that were added, and the function or template files that were modified, in order to make it easier to update your changes as needed.<\/p>\n<h2>Template Files Changed<\/h2>\n<p><code>templates\/checkout_cart.php<\/code><br \/>\n<code>templates\/shortcode-profile-editor.php<\/code><br \/>\n<code>templates\/widget-cart-item.php<\/code><\/p>\n<h2>Functions Changed<\/h2>\n<p><code>includes\/template-functions.php<\/code><\/p>\n<ul>\n<li>edd_get_purchase_link()<\/li>\n<\/ul>\n<p><code>includes\/checkout\/template.php<\/code><\/p>\n<ul>\n<li>edd_default_cc_address_fields()<\/li>\n<li>edd_get_register_fields()<\/li>\n<li>edd_get_login_fields()<\/li>\n<li>edd_payment_mode_select()<\/li>\n<li>edd_checkout_hidden_fields()<\/li>\n<\/ul>\n<h2>Debugging<\/h2>\n<p>In order to make this easier for store owners and theme developers to know if they are affected by these changes, we&#8217;ve forced the <code>edd_debug_log()<\/code> function to log an entry in the Easy Digital Downloads Debug Log any time a required nonce is missing.<\/p>\n<p>You can view your debug log by visiting <code>Downloads > Tools > Debug Log<\/code><\/p>\n<h2>Detailed Changes<\/h2>\n<p>Below is a list, showing the line as it previously existed, and the new line.<br \/>\nhttps:\/\/gist.github.com\/cklosowski\/8fa3914ca578ee1b6d10741fef4e3029<\/p>\n<p>Its not often we have to make changes to these template files that would require this level of information, but when it comes to hardening the security and performance of your store, it will be necessary to review the above changes and update your stores accordingly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Version 2.9.4 of Easy Digital Downloads includes some important updates related to a few of our templates and sections that can be customized. These updates\u00a0may require changes to stores that have modified these sections. The&#8230;<\/p>\n<p class=\"continue-reading\"><a class=\"more-link\" href=\"https:\/\/easydigitaldownloads.com\/development\/2018\/07\/09\/important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4\/\">Continue reading &rarr;<\/a><\/p>\n","protected":false},"author":650,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-647","post","type-post","status-publish","format-standard","hentry","category-core"],"_links":{"self":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/users\/650"}],"replies":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/comments?post=647"}],"version-history":[{"count":10,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/647\/revisions"}],"predecessor-version":[{"id":658,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/647\/revisions\/658"}],"wp:attachment":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/media?parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/categories?post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/tags?post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}