Skip to content

Commit 5d3de27

Browse files
committed
wp_register_custom_css_support: update PHP doc to clarify purpose
Clarify the purpose of the `wp_register_custom_css_support` function. "Removing styles.css" is technically correct, but the comment didn't explain the "why" in plain language. Props audrasjb, ramonopoly, peterwilsoncc. Follow-up to [64771]. git-svn-id: https://develop.svn.wordpress.org/trunk@62299 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 3b11171 commit 5d3de27

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)