PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.7.1
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.7.1
1.7.1 1.7.0 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 All 51 releases
← All changes | app/Modules/Reviews/ReviewModule.php +2 -13 1.7.0 → 1.7.1 View file →
@@ -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;