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;