Skip to content

Commit a95e107

Browse files
committed
Fix linting
1 parent 191fea3 commit a95e107

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

lib/experimental/boot/boot-menu-items.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
/**
1717
* Register a boot menu item.
1818
*
19-
* @param string $id Unique menu item ID.
20-
* @param string $label Menu item label.
21-
* @param string $to Route path the menu item links to.
22-
* @param string $parent Optional parent menu item ID.
19+
* @param string $id Unique menu item ID.
20+
* @param string $label Menu item label.
21+
* @param string $to Route path the menu item links to.
22+
* @param string $parent_id Optional parent menu item ID.
2323
*/
24-
function gutenberg_register_boot_menu_item( $id, $label, $to, $parent = '' ) {
24+
function gutenberg_register_boot_menu_item( $id, $label, $to, $parent_id = '' ) {
2525
global $gutenberg_boot_menu_items;
2626

2727
$menu_item = array(
@@ -31,8 +31,8 @@ function gutenberg_register_boot_menu_item( $id, $label, $to, $parent = '' ) {
3131
);
3232

3333
// Only include parent if it's not empty (matches next-admin approach).
34-
if ( ! empty( $parent ) ) {
35-
$menu_item['parent'] = $parent;
34+
if ( ! empty( $parent_id ) ) {
35+
$menu_item['parent'] = $parent_id;
3636
}
3737

3838
$gutenberg_boot_menu_items[] = $menu_item;

package-lock.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/components/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
6+
### Bug Fixes
7+
8+
- Reexport all of the `build-types` folder from the `components` package entry point ([#72809](https://github.com/WordPress/gutenberg/pull/72809)).
59
- `TextareaControl`: Add `min-height` to the textarea element ([#72867](https://github.com/WordPress/gutenberg/pull/72867)).
610

711
## 30.7.0 (2025-10-29)

0 commit comments

Comments
 (0)