summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/page-list.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
commit0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch)
treee139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/blocks/page-list.php
parentAdding upstream version 6.5.5+dfsg1. (diff)
downloadwordpress-upstream/6.6.1+dfsg1.tar.xz
wordpress-upstream/6.6.1+dfsg1.zip
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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(