Add deprecated WC_Paypal class

WC_Paypal was removed in 2.0 in favour of WC_Gateway_Paypal, this
patch deprecates the original WC_Paypal class & returns an instance
of the WC_Gateway_Paypal object instead of potentially causing a
fatal error.
This commit is contained in:
Brent Shepherd 2013-02-12 16:46:56 +10:00
parent 3a0413ddbc
commit 1c4c5d8da4
1 changed files with 7 additions and 0 deletions

View File

@ -750,3 +750,10 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
}
}
class WC_Paypal extends WC_Gateway_Paypal {
public function __construct() {
_deprecated_function( 'WC_Paypal', '1.4', 'WC_Gateway_Paypal' );
parent::__construct();
}
}