• Resolved george.n

    (@georgen-1)


    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)
  • Plugin Author Frank Bueltge

    (@bueltge)

    Thanks a lot for the hint. The topic is fixed in the current dev version on github, will released in the next version.
    Best.

Viewing 1 replies (of 1 total)
  • The topic ‘Invalid argument supplied for CP with no feature support’ is closed to new replies.