| @@ -207,24 +207,13 @@ | ||
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | /** |
| 210 | 210 | * Show Reviews as a "↳" child under Products in the WP admin left |
| 211 | - * sidebar, mirroring the Attributes and Inventory children. Hidden by | |
| 212 | - * default via inline CSS; useNavigationMenuUpdateService toggles it | |
| 213 | - * visible whenever the active route's active_menu is 'products'. | |
| 211 | + * sidebar, mirroring the Attributes and Inventory children. Always | |
| 212 | + * visible, so the sidebar keeps the same shape on every page. | |
| 214 | 213 | */ |
| 215 | 214 | protected function registerSidebarMenu() |
| 216 | 215 | { |
| 217 | - add_action('admin_enqueue_scripts', function () { | |
| 218 | - wp_register_style('fluent-cart-reviews-admin', false); | |
| 219 | - wp_enqueue_style('fluent-cart-reviews-admin'); | |
| 220 | - wp_add_inline_style('fluent-cart-reviews-admin', ' | |
| 221 | - .toplevel_page_fluent-cart li.fluent_cart_reviews { | |
| 222 | - display: none; | |
| 223 | - } | |
| 224 | - '); | |
| 225 | - }); | |
| 226 | - | |
| 227 | 216 | add_action('fluent_cart/admin_submenu_added', function () { |
| 228 | 217 | global $submenu; |
| 229 | 218 | if (!isset($submenu['fluent-cart'])) { |
| 230 | 219 | return; |