Fixed bug where level cost would sometimes have incorrect pluralization of months/weeks/etc. (Thanks, Kevin Ackerman)
Now checking the child and parent theme for email_header.html and email_footer.html files to use for emails. The child theme is checked first.
Added pmpro_getfile_before_readfile hook (passes $filename and $mimetype params) in getfile.php
Now making sure there are no JavaScript errors on the checkout page. Use the pmpro_require_javascript_for_checkout filter to disable this.
Removed bogus script code for testing
BUG/ENHANCEMENT: getMembershipLevel method of MemberOrder can now handle when discount_code property is an object. Also, the IPN Handler will now try to get the discount code for the order to correctly update the users pmpro_memberships_users entry.
Discount code fix for 2checkout handler as well.
Uncommented JS
Not applying search filters if post_parent is set in search (i.e. bbpress forums/topics).
Merge pull request #144 from messica/dev

Now checking for JS errors before continuing registration. Use pmpro_require_javascript_for_checkout filter to disable.
Setting current users during init to avoid cases where $current_user->membership_level doesn't get setup.
Merge branch 'dev' of github.com:strangerstudios/paid-memberships-pro into dev
Removed extra class attribute in CVV field.
Readme update.
Discount code updates. New filter pmpro_order_discount_code. Added $code parameter to pmpro_check_discount_code filter.
ENHANCEMENT: Added code to redirect to the redirect_url if you pass a redirect_url to the login page and the user is already logged in. Updated the links in email confirmations to use login links with redirects instead of direct links.
EHANCEMENT: Added pmpro_email_attachments filter, which can be used to add attachments to PMPro emails that are sent out.
Version update
.pot, .po, .mo update
Merge branch 'v1.7.13.1'