Docs: Various docblock fixes in Block Supports related functions.

See #56792.

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


git-svn-id: http://core.svn.wordpress.org/trunk@54426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-11-24 22:52:11 +00:00
parent 532cd00f46
commit e2ed8d0650
4 changed files with 9 additions and 11 deletions

View File

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

View File

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

View File

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

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.2-alpha-54873'; $wp_version = '6.2-alpha-54874';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.