PHP error in description of how to add another size (Solved)
-
Hi there,
I followed the instructions about how to add other image sizes to the menu, but when debugging my theme using
define('WP_DEBUG', true);
in wp-config.php, I was receiving the following error:Notice: Undefined offset: 2 in /var/www/davidpayette.com/htdocs/wp-content/plugins/menu-image/menu-image.php on line 127
The problem is with this code:
// add a new size $sizes['menu-50x50'] = array(50,50);
And is resolved by changing it to this:
// add a new size $sizes['menu-50x50'] = array(50,50,false);
The issue is with not passing enough parameters into the php array. I appreciate the time you took to develop this plugin, and the error is very minor, but I wanted to show my appreciation by pointing it out.
Thanks so much,
David Payette
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP error in description of how to add another size (Solved)’ is closed to new replies.