Invalid argument supplied for CP with no feature support
-
Hi,
Just reporting on an issue I just discovered.
When creating custom post types with
"supports" => false,
you end up getting these errors in Adminimize (for the post type):Warning: Invalid argument supplied for foreach() in /var/www/public/wp-content/plugins/adminimize/inc-options/write_cp_options.php on line 84
Warning: Invalid argument supplied for foreach() in /var/www/public/wp-content/plugins/adminimize/inc-options/write_cp_options.php on line 148
Looking at the code for both instances, it seems that there’s a need for a simple check if the global
_wp_post_type_features
is not empty.Thanks,
g
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Invalid argument supplied for CP with no feature support’ is closed to new replies.