From 235a4dfa3e9d50b45c3234fee2552cb81aab20de Mon Sep 17 00:00:00 2001 From: Aleksandar Atanasov Date: Tue, 13 Jan 2026 20:09:35 +0200 Subject: [PATCH] Fix edit asset warning --- php/class-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/class-admin.php b/php/class-admin.php index eccbe977..0eeea5f7 100644 --- a/php/class-admin.php +++ b/php/class-admin.php @@ -298,7 +298,7 @@ public function render() { $page = $this->get_param( 'current_section' ); } - $this->set_param( 'active_slug', $page['slug'] ); + $this->set_param( 'active_slug', isset( $page['slug'] ) ? $page['slug'] : '' ); $setting = $this->init_components( $page, $screen->id ); $this->component = $setting->get_component(); $template = $this->section;