Skip to content

Commit 235a4df

Browse files
committed
Fix edit asset warning
1 parent 9a4fbff commit 235a4df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/class-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public function render() {
298298
$page = $this->get_param( 'current_section' );
299299
}
300300

301-
$this->set_param( 'active_slug', $page['slug'] );
301+
$this->set_param( 'active_slug', isset( $page['slug'] ) ? $page['slug'] : '' );
302302
$setting = $this->init_components( $page, $screen->id );
303303
$this->component = $setting->get_component();
304304
$template = $this->section;

0 commit comments

Comments
 (0)