Merge pull request #6171 from maxrice/fix-simplify-js-load

Don't load simplify javascript when simplify gateway isn't available
This commit is contained in:
Mike Jolley 2014-09-05 10:04:51 +01:00
commit ad78caf955
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway {
* Outputs scripts used for simplify payment
*/
public function payment_scripts() {
if ( ! is_checkout() ) {
if ( ! is_checkout() || ! $this->is_available() ) {
return;
}