taxopress_re_order_menu function has error
-
MY VERSION :3.0.4
taxopress_re_order_menu function has error:
like this:Warning: Undefined array key 4 in C:\wp-content\plugins\simple-tags\inc\functions.inc.php on line 47
==========================
$menuItems[4] iS NULL
plesase fix it。 THANKS!========================
function taxopress_re_order_menu() { global $submenu; $newSubmenu = []; foreach ($submenu as $menuName => $menuItems) { if ('st_options' === $menuName) { THIS LINE>>> $newSubmenu[0] = $menuItems[4]; // $menuItems[4] is null $newSubmenu[1] = $menuItems[1]; $newSubmenu[2] = $menuItems[2]; $newSubmenu[3] = $menuItems[3]; $newSubmenu[4] = $menuItems[0]; $submenu['st_options'] = $newSubmenu; break; } } }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘taxopress_re_order_menu function has error’ is closed to new replies.