Skip to content

Commit

Permalink
Dequeue wp-block-navigation-view-2 script handle to avoid core navi…
Browse files Browse the repository at this point in the history
…gation block validation issues
  • Loading branch information
thelovekesh committed Nov 1, 2022
1 parent 08906e4 commit bd8e256
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/embeds/class-amp-core-block-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ static function ( $matches ) use ( $modal_state_property ) {
*/
public function dequeue_block_navigation_view_script() {
wp_dequeue_script( 'wp-block-navigation-view' );
wp_dequeue_script( 'wp-block-navigation-view-2' );
}

/**
Expand Down

0 comments on commit bd8e256

Please sign in to comment.