Only use rm=2 for paypal when SSL is enabled, to avoid security warnings when returning to the site.

This commit is contained in:
Mike Jolley 2012-04-23 14:08:29 +01:00
parent c6a4c0452e
commit 1f2a09869c
2 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class WC_Paypal extends WC_Payment_Gateway {
'no_note' => 1,
'currency_code' => get_woocommerce_currency(),
'charset' => 'UTF-8',
'rm' => 2,
'rm' => is_ssl() ? 2 : 1,
'upload' => 1,
'return' => $this->get_return_url( $order ),
'cancel_return' => $order->get_cancel_order_url(),

View File

@ -153,6 +153,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Tweak - Allow more readable flat rate options to be entered
* Tweak - Changed category and tag link to filter product list in admin panel
* Tweak - Removed product 'exists' variable in favour of the exists() method. Tweaked exist method to look for ID in DB.
* Tweak - Only use rm=2 for paypal when SSL is enabled, to avoid security warnings when returning to the site.
* Fix - Replacing use of deprecated function get_current_theme() with wp_get_theme()
* Fix - Body classes now correct for WordPress themes with non alphanumeric characters
* Fix - PayPal http_build_query & -> & on some PHP 5.3 servers