Skip to content

Commit 3231f08

Browse files
committed
Clarify the purpose of the wp_register_custom_css_support function by specifying that it strips custom CSS attributes from all blocks in post content.
1 parent a129457 commit 3231f08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/block-supports/custom-css.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function wp_register_custom_css_support( $block_type ) {
125125
}
126126

127127
/**
128-
* Strips `style.css` attributes from all blocks in post content.
128+
* Strips custom CSS (`style.css` in attributes) from all blocks in post content.
129129
*
130130
* Uses {@see WP_Block_Parser::next_token()} to scan block tokens and surgically
131131
* replace only the attribute JSON that changed — no parse_blocks() +

0 commit comments

Comments
 (0)