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].


Built from https://develop.svn.wordpress.org/trunk@62299


git-svn-id: http://core.svn.wordpress.org/trunk@61579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ramonopoly
2026-05-06 03:22:43 +00:00
parent c8fecf9715
commit fd91c41426
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ function wp_register_custom_css_support( $block_type ) {
}
/**
* Strips `style.css` attributes from all blocks in post content.
* Strips custom CSS (`style.css` in attributes) from all blocks in post content.
*
* Uses {@see WP_Block_Parser::next_token()} to scan block tokens and surgically
* replace only the attribute JSON that changed — no parse_blocks() +
+1 -1
View File
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.1-alpha-62298';
$wp_version = '7.1-alpha-62299';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.