--- a/wp/wp-includes/class-wp-block-supports.php Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/class-wp-block-supports.php Tue Sep 27 16:37:53 2022 +0200
@@ -58,7 +58,7 @@
}
/**
- * Initializes the block supports. It registes the block supports block attributes.
+ * Initializes the block supports. It registers the block supports block attributes.
*
* @since 5.6.0
*/
@@ -72,7 +72,7 @@
*
* @since 5.6.0
*
- * @param string $block_support_name Block support name.
+ * @param string $block_support_name Block support name.
* @param array $block_support_config Array containing the properties of the block support.
*/
public function register( $block_support_name, $block_support_config ) {
@@ -88,7 +88,7 @@
*
* @since 5.6.0
*
- * @return array Array of HTML attributes.
+ * @return string[] Array of HTML attributes.
*/
public function apply_block_supports() {
$block_attributes = self::$block_to_render['attrs'];
@@ -163,9 +163,8 @@
*
* @since 5.6.0
*
- * @param array $extra_attributes Optional. Extra attributes to render on the block wrapper.
- *
- * @return string String of HTML classes.
+ * @param string[] $extra_attributes Optional. Array of extra attributes to render on the block wrapper.
+ * @return string String of HTML attributes.
*/
function get_block_wrapper_attributes( $extra_attributes = array() ) {
$new_attributes = WP_Block_Supports::get_instance()->apply_block_supports();