Skip to content

Commit 8a7241b

Browse files
authored
feat (custom breakpoints): if no custom breakpoints, remove the render_block filter to prevent future checks (#3496)
Co-authored-by: [email protected] <>
1 parent f96c7ee commit 8a7241b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dynamic-breakpoints.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ public function enqueue_adjusted_responsive_css() {
246246
*/
247247
public function adjust_block_styles( $block_content, $block ) {
248248
if ( ! $this->has_custom_breakpoints() ) {
249+
remove_filter( 'render_block', array( $this, 'adjust_block_styles' ), 11 );
249250
return $block_content;
250251
}
251252

0 commit comments

Comments
 (0)