First pass at creating purchases from WP-CLI
Fix typo
Fix spacing
Remove backticks from CREATE TABLE SQL.

These are not supported by dbDelta and cause a Notice. Fixes #2781.
Merge pull request #2782 from jjeaton/create-table-notice

Remove backticks from CREATE TABLE SQL.
change default item count in [downloads] shortcode from 10 to 9 - #2785
Merge pull request #2786 from sdavis2702/master

change default item count in [downloads] shortcode from 10 to 9 - #2785
Make sure discount code exists before trying to apply it

Checks that the discount code exists before trying to apply it, otherwise `edd_get_discounted_amount()` will return `0`.

When this is then subtracted from `$price` and inverted to make `$discounted_price` here:

`$discounted_price -= $price - edd_get_discounted_amount( $discount, $price );`

 it'll always equal the negative value of the price giving the user a 100% discount.
Merge pull request #2791 from lukechilds/patch-2

Make sure discount code exists before trying to apply it
Conflicts:
	includes/admin/payments/view-order-details.php
#2768 - Converting to entities instead of ascii character
Conflicts:
	includes/admin/payments/view-order-details.php
Adds in better formatting upon addition, calculations work, and titles work again.

Conflicts:
	includes/admin/payments/view-order-details.php
#2768 - Purcahsed downloads updated to work with new organization
Set chosen to true. #2800
Merge pull request #2799 from ghost1227/issue/2601

Resubmitted
#2768 - Fixing recalc, after missed cherry-pick
Set the default option to Select a Download. #2768
Merge branch 'issue/2768-2' into release/2.2
Set completed to complete to match the rest of EDD. #2601