Changeset 55475 for trunk/src/wp-includes/blocks/navigation-link.php
- Timestamp:
- 03/07/2023 03:29:47 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/navigation-link.php
r55257 r55475 10 10 * which will be applied to the navigation markup in the front-end. 11 11 * 12 * @param array $context Navigation block context. 13 * @param array $attributes Block attributes. 12 * @param array $context Navigation block context. 13 * @param array $attributes Block attributes. 14 * @param bool $is_sub_menu Whether the link is part of a sub-menu. 14 15 * @return array Colors CSS classes and inline styles. 15 16 */ 16 function block_core_navigation_link_build_css_colors( $context, $attributes ) {17 function block_core_navigation_link_build_css_colors( $context, $attributes, $is_sub_menu = false ) { 17 18 $colors = array( 18 19 'css_classes' => array(), 19 20 'inline_styles' => '', 20 21 ); 21 22 $is_sub_menu = isset( $attributes['isTopLevelLink'] ) ? ( ! $attributes['isTopLevelLink'] ) : false;23 22 24 23 // Text color.
Note: See TracChangeset
for help on using the changeset viewer.