mirror of
https://github.com/WordPress/WordPress.git
synced 2026-06-19 07:37:07 +00:00
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:
@@ -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() +
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user