From 88e2d9de72fb0f757f05ddb620a46add736c14e6 Mon Sep 17 00:00:00 2001 From: Armando Liccardo Date: Tue, 26 Nov 2024 12:28:04 +0000 Subject: [PATCH] added also the dynamic from Press7-78 --- includes/Performance.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Performance.php b/includes/Performance.php index c3c9253..c58fda6 100644 --- a/includes/Performance.php +++ b/includes/Performance.php @@ -239,12 +239,13 @@ public function adminBarMenu( \WP_Admin_Bar $wp_admin_bar ) { ); } + $brand = $this->container->get( 'plugin' )['id']; $wp_admin_bar->add_node( array( 'id' => 'nfd_purge_menu-cache_settings', 'title' => __( 'Cache Settings', 'newfold-module-performance' ), 'parent' => 'nfd_purge_menu', - 'href' => admin_url( 'options-general.php#' . Performance::SETTINGS_ID ), + 'href' => admin_url( "admin.php?page=$brand#/performance" ), ) ); }