I've been building custom themes for a while now, but I've noticed a problem with page templates. On some of my sites, they show up properly in the page editor in a drop-down menu. On other sites, they are nowhere to be found.
I've looked into the built-in theme editor and noticed that it's not recognizing the templates as templates in some sites. For example:
<?php
/*
Page Template: Contact Form
*/
?>
...will be recognized as "Contact Form Page Template" on some sites, but not on others.
I can override this in the post_meta table directly. For those of you curious, make sure you know the page ID and the filename of your page template. Set the meta ID "_wp_page_template" to be equal to the filename you want to use.
This works ... but I really don't like having to edit the database directly. Any idea what bug I'm looking at fixing?