Docs: Various docblock fixes in Block Supports related functions.

See #56792.


git-svn-id: https://develop.svn.wordpress.org/trunk@54874 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2022-11-24 22:50:16 +00:00
parent 3dc1236245
commit 808d6a1909
3 changed files with 8 additions and 10 deletions

View File

@@ -13,7 +13,7 @@
* @access private
*
* @param array $block Block object.
* @return string The unique class name.
* @return string The unique class name.
*/
function wp_get_elements_class_name( $block ) {
return 'wp-elements-' . md5( serialize( $block ) );
@@ -92,9 +92,8 @@ function wp_render_elements_support( $block_content, $block ) {
* @since 6.1.0 Implemented the style engine to generate CSS and classnames.
* @access private
*
* @param string|null $pre_render The pre-rendered content. Default null.
* @param array $block The block being rendered.
*
* @param string|null $pre_render The pre-rendered content. Default null.
* @param array $block The block being rendered.
* @return null
*/
function wp_render_elements_support_styles( $pre_render, $block ) {

View File

@@ -13,7 +13,7 @@
*
* @access private
*
* @param string $block_name Block Name.
* @param string $block_name Block Name.
* @return string Generated classname.
*/
function wp_get_block_default_classname( $block_name ) {
@@ -30,8 +30,8 @@ function wp_get_block_default_classname( $block_name ) {
*
* @since 5.6.0
*
* @param string $class_name The current applied classname.
* @param string $block_name The block name.
* @param string $class_name The current applied classname.
* @param string $block_name The block name.
*/
$classname = apply_filters( 'block_default_classname', $classname, $block_name );
@@ -45,8 +45,7 @@ function wp_get_block_default_classname( $block_name ) {
*
* @access private
*
* @param WP_Block_Type $block_type Block Type.
*
* @param WP_Block_Type $block_type Block Type.
* @return array Block CSS classes and inline styles.
*/
function wp_apply_generated_classname_support( $block_type ) {

View File

@@ -1,7 +1,7 @@
<?php
/**
* Spacing block support flag.
*
* For backwards compatibility, this remains separate to the dimensions.php
* block support despite both belonging under a single panel in the editor.
*