Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have noticed that wp-includes/theme-compat directory.
So, what is it?
Is it a theme?

share|improve this question

1 Answer 1

up vote 10 down vote accepted

The theme-compat directory is comprised of a set of deprecated (since WordPress 3.0) files that WordPress used to use as fallback template-part files, in case the active Theme failed to include them.

In other words, if a Theme used the get_header() template tag, but failed to include a header.php template-part file, WordPress would fall back to /wp-includes/theme-compat/header.php.

The template-part files in theme_compat are deprecated, unmaintained, incredibly old (by core/current-Theme standards), and should not be relied upon by any current Theme.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.