Legacy IPN handler. #2665
This commit is contained in:
parent
f3d6eeb35c
commit
5c699e27bd
|
@ -184,6 +184,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
|||
* Fix - Mijireh Page Slurp.
|
||||
* Fix - Removed unused 'woocommerce_prepend_shop_page_to_urls' setting from breadcrumbs.
|
||||
* Fix - hide_cart_widget_if_empty option.
|
||||
* Fix - Added legacy paypal IPN handling.
|
||||
* Localization - Finnish translation by Arhi Paivarinta.
|
||||
|
||||
= 2.0.2 - 06/03/2013 =
|
||||
|
|
|
@ -10,6 +10,24 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
/**
|
||||
* Handle IPN requests for the legacy paypal gateway by calling gateways manually if needed.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function woocommerce_legacy_paypal_ipn() {
|
||||
if ( ! empty( $_GET['paypalListener'] ) && $_GET['paypalListener'] == 'paypal_standard_IPN' ) {
|
||||
global $woocommerce;
|
||||
|
||||
$woocommerce->payment_gateways();
|
||||
|
||||
do_action( 'woocommerce_api_wc_gateway_paypal' );
|
||||
}
|
||||
}
|
||||
|
||||
add_action( 'init', 'woocommerce_legacy_paypal_ipn' );
|
||||
|
||||
/**
|
||||
* Handle redirects before content is output - hooked into template_redirect so is_page works.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue