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:
commit
ad78caf955
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue