First of all, this is a nifty little plugin that I’ve used successfully in a couple projects now. If you have a ton of categories on your site, this is super helpful!
I did just discover a small bug related to menu items. If you are editing a menu from the WordPress admin and click on “View All,” the Better Categories functions end up applying to that list of pages. Any subpages in that list will be hidden, but unfortunately you won’t be able to toggle the parent item to view them.
I solved this on my end by editing better-categories.php in the plugin folder. There is probably a better way to do this, but I was just looking for a quick fix:
In function bc_os_print_scripts(), edit the code to be wrapped in the following IF condition:
<script type='text/javascript'>
jQuery(document).ready(function(){
if (jQuery("#pagechecklist").length === 0) {
/* for post add/edit screen*/
[ALL THE REST OF THE CODE]
}
});
</script>
This prevents Better Categories from firing on the Edit Menu page, but it continues to work fine where we actually need it.
]]>