running version 1.6.9 of your plugin
when no custom post types are defined gives:
Warning: Invalid argument supplied for foreach() in …\www\httpdocs\wp\wp-content\plugins\ultimate-post-type-manager\index.php on line 381
and a very simple fix to that is on line 381 where it says
foreach($cpts as $cpt)
it should be
foreach((array)$cpts as $cpt)
or you can check the count of
$cptsbefore calling the foreach and if its 0 then skip it.
- The topic ‘[Plugin: Ultimate Post Type Manager] Invalid argument supplied for foreach() in’ is closed to new replies.