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:
parent
532cd00f46
commit
e2ed8d0650
|
@ -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 ) {
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue