summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/page-list.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/page-list.php')
-rw-r--r--wp-includes/blocks/page-list.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/wp-includes/blocks/page-list.php b/wp-includes/blocks/page-list.php
index b9ef8bf..4ff57e1 100644
--- a/wp-includes/blocks/page-list.php
+++ b/wp-includes/blocks/page-list.php
@@ -9,6 +9,8 @@
* Build an array with CSS classes and inline styles defining the colors
* which will be applied to the pages markup in the front-end when it is a descendant of navigation.
*
+ * @since 5.8.0
+ *
* @param array $attributes Block attributes.
* @param array $context Navigation block context.
* @return array Colors CSS classes and inline styles.
@@ -101,6 +103,8 @@ function block_core_page_list_build_css_colors( $attributes, $context ) {
* Build an array with CSS classes and inline styles defining the font sizes
* which will be applied to the pages markup in the front-end when it is a descendant of navigation.
*
+ * @since 5.8.0
+ *
* @param array $context Navigation block context.
* @return array Font size CSS classes and inline styles.
*/
@@ -135,6 +139,8 @@ function block_core_page_list_build_css_font_sizes( $context ) {
/**
* Outputs Page list markup from an array of pages with nested children.
*
+ * @since 5.8.0
+ *
* @param boolean $open_submenus_on_click Whether to open submenus on click instead of hover.
* @param boolean $show_submenu_icons Whether to show submenu indicator icons.
* @param boolean $is_navigation_child If block is a child of Navigation block.
@@ -220,6 +226,8 @@ function block_core_page_list_render_nested_page_list( $open_submenus_on_click,
/**
* Outputs nested array of pages
*
+ * @since 5.8.0
+ *
* @param array $current_level The level being iterated through.
* @param array $children The children grouped by parent post ID.
*
@@ -240,6 +248,8 @@ function block_core_page_list_nest_pages( $current_level, $children ) {
/**
* Renders the `core/page-list` block on server.
*
+ * @since 5.8.0
+ *
* @param array $attributes The block attributes.
* @param string $content The saved content.
* @param WP_Block $block The parsed block.
@@ -345,6 +355,8 @@ function render_block_core_page_list( $attributes, $content, $block ) {
/**
* Registers the `core/pages` block on server.
+ *
+ * @since 5.8.0
*/
function register_block_core_page_list() {
register_block_type_from_metadata(