Notice: map_meta_cap was called incorrectly
Today i got exactly the same behaviour when adding a custom post type. I also noticed some admin post search tools stopped working. My debug_log showed exactly the same notice. The problem turned out to be some text before the <?php opening tag (top file) were I register the CPT. Example some text here<?php /** … Read more