evertiro / historical-redux2

A simple, easily extendable options framework for WordPress based on NHP Theme Options Framework.
http://reduxframework.com
Other
105 stars 43 forks source link

Bug on first setup: "undefined index: icon_type" #118

Closed darth90rs closed 11 years ago

darth90rs commented 11 years ago

Hi there! I found this bug just after setting up the framework for my theme. When in wp-admin->Options, on the left sidebar of the framework panel, for each section, before the icon and the title of the menu item, I get this warning:

Notice: Undefined index: icon_type in /htdocs/public/wp/wp-content/themes/tesi/admin/options/defaults.php on line 643

This is for the first 5 elements, then the message changes the line number: 660, 674 and 688. Though the icon is displaying well!

I tryed to get rid of it, and found a way: In options.php, on line 78 I added the following:

$args['icon_type'] = '';

This seems to fix the bug, because after doing so the warning message doesn't appear in the backend. Hope this can help! Keep up the good work!

Riccardo

evertiro commented 11 years ago

Looks like I missed a check in the defaults file! I'll get that added shortly. Thanks for catching it!

evertiro commented 11 years ago

Closing as a duplicate, please post further updates to #136