Admin-Page-Class icon indicating copy to clipboard operation
Admin-Page-Class copied to clipboard

Small change needed for Top menus.

Open StonehengeCreations opened this issue 7 years ago • 0 comments

When creating a Top level menu you get an error: Notice: Undefined index: in/wp-content/plugins/Admin-Page-Class-master/admin-page-class/admin-page-class.php on line 277

In the current version of Wordpress the "top" was dropped, I guess. Deleting the substring corrects the error. Original line 277: $this->Top_Slug = $args['menu']['top'];

Edited and working line 277: $this->Top_Slug = $args['menu'];

Sorry! Completely new to contributing to Github, so I haven't figured out how to add the edited file yet.. ;-)

StonehengeCreations avatar Jan 30 '18 14:01 StonehengeCreations