← All changes
|
jetpack_vendor/automattic/jetpack-blaze/src/class-blaze.php
+5
-1
16.2
→
16.3
View file →
| @@ -192,9 +192,13 @@ | ||
| 192 | 192 | esc_attr( $menu_label ), |
| 193 | 193 | $menu_label, |
| 194 | 194 | 'manage_options', |
| 195 | 195 | $menu_slug, |
| 196 | - array( $blaze_dashboard, 'render' ) | |
| 196 | + array( $blaze_dashboard, 'render' ), | |
| 197 | + null, | |
| 198 | + // Not $menu_slug: that is filterable, and a host naming it would lose | |
| 199 | + // the item the moment anything changed it. | |
| 200 | + array( 'key' => 'jetpack-blaze' ) | |
| 197 | 201 | ); |
| 198 | 202 | } else { |
| 199 | 203 | // Other parents already exist at this priority, so add_submenu_page is safe. |
| 200 | 204 | $page_suffix = add_submenu_page( |