unqeueue scripts (https://github.com/woocommerce/woocommerce-blocks/pull/4034)
This commit is contained in:
parent
25544f3ce4
commit
cda0252d12
|
@ -69,10 +69,10 @@ class Cart extends AbstractBlock {
|
||||||
*/
|
*/
|
||||||
protected function render( $attributes, $content ) {
|
protected function render( $attributes, $content ) {
|
||||||
// Deregister core cart scripts and styles.
|
// Deregister core cart scripts and styles.
|
||||||
wp_deregister_script( 'wc-cart' );
|
wp_dequeue_script( 'wc-cart' );
|
||||||
wp_deregister_script( 'wc-password-strength-meter' );
|
wp_dequeue_script( 'wc-password-strength-meter' );
|
||||||
wp_deregister_script( 'selectWoo' );
|
wp_dequeue_script( 'selectWoo' );
|
||||||
wp_deregister_style( 'select2' );
|
wp_dequeue_style( 'select2' );
|
||||||
|
|
||||||
return $this->inject_html_data_attributes( $content . $this->get_skeleton(), $attributes );
|
return $this->inject_html_data_attributes( $content . $this->get_skeleton(), $attributes );
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,10 +71,10 @@ class Checkout extends AbstractBlock {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deregister core checkout scripts and styles.
|
// Deregister core checkout scripts and styles.
|
||||||
wp_deregister_script( 'wc-checkout' );
|
wp_dequeue_script( 'wc-checkout' );
|
||||||
wp_deregister_script( 'wc-password-strength-meter' );
|
wp_dequeue_script( 'wc-password-strength-meter' );
|
||||||
wp_deregister_script( 'selectWoo' );
|
wp_dequeue_script( 'selectWoo' );
|
||||||
wp_deregister_style( 'select2' );
|
wp_dequeue_style( 'select2' );
|
||||||
|
|
||||||
return $this->inject_html_data_attributes( $content . $this->get_skeleton(), $attributes );
|
return $this->inject_html_data_attributes( $content . $this->get_skeleton(), $attributes );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue