mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Use third-person singular verbs for Block Supports related function descriptions, as per docblocks standards.
See #56792. git-svn-id: https://develop.svn.wordpress.org/trunk@54873 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -57,7 +57,7 @@ function wp_register_colors_support( $block_type ) {
|
||||
|
||||
|
||||
/**
|
||||
* Add CSS classes and inline styles for colors to the incoming attributes array.
|
||||
* Adds CSS classes and inline styles for colors to the incoming attributes array.
|
||||
* This will be applied to the block markup in the front-end.
|
||||
*
|
||||
* @since 5.6.0
|
||||
|
||||
@@ -31,7 +31,7 @@ function wp_register_custom_classname_support( $block_type ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the custom classnames to the output.
|
||||
* Adds the custom classnames to the output.
|
||||
*
|
||||
* @since 5.6.0
|
||||
* @access private
|
||||
|
||||
@@ -497,7 +497,7 @@ function wp_register_duotone_support( $block_type ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Render out the duotone stylesheet and SVG.
|
||||
* Renders out the duotone stylesheet and SVG.
|
||||
*
|
||||
* @since 5.8.0
|
||||
* @since 6.1.0 Allow unset for preset colors.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get the elements class names.
|
||||
* Gets the elements class names.
|
||||
*
|
||||
* @since 6.0.0
|
||||
* @access private
|
||||
@@ -20,7 +20,7 @@ function wp_get_elements_class_name( $block ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the block content with elements class names.
|
||||
* Updates the block content with elements class names.
|
||||
*
|
||||
* @since 5.8.0
|
||||
* @access private
|
||||
@@ -82,7 +82,7 @@ function wp_render_elements_support( $block_content, $block ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the elements stylesheet.
|
||||
* Renders the elements stylesheet.
|
||||
*
|
||||
* In the case of nested blocks we want the parent element styles to be rendered before their descendants.
|
||||
* This solves the issue of an element (e.g.: link color) being styled in both the parent and a descendant:
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get the generated classname from a given block name.
|
||||
* Gets the generated classname from a given block name.
|
||||
*
|
||||
* @since 5.6.0
|
||||
*
|
||||
@@ -39,7 +39,7 @@ function wp_get_block_default_classname( $block_name ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the generated classnames to the output.
|
||||
* Adds the generated classnames to the output.
|
||||
*
|
||||
* @since 5.6.0
|
||||
*
|
||||
|
||||
@@ -33,7 +33,7 @@ function wp_register_spacing_support( $block_type ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Add CSS classes for block spacing to the incoming attributes array.
|
||||
* Adds CSS classes for block spacing to the incoming attributes array.
|
||||
* This will be applied to the block markup in the front-end.
|
||||
*
|
||||
* @since 5.8.0
|
||||
|
||||
Reference in New Issue
Block a user