This commit is contained in:
Seghir Nadir 2021-04-08 13:44:17 +01:00 committed by GitHub
parent 25544f3ce4
commit cda0252d12
2 changed files with 8 additions and 8 deletions

View File

@ -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 );
} }

View File

@ -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 );
} }