[wp-hackers] Page templates in subdirectories

Andrew Nacin wp at andrewnacin.com
Fri Feb 19 14:57:46 UTC 2010


That check was added in 2.9 because while we showed page templates that were
in subdirectories, they were never functional. See
http://core.trac.wordpress.org/ticket/10959.

On Fri, Feb 19, 2010 at 9:49 AM, Dan Phiffer <dan at phiffer.org> wrote:

> I'm writing a theme that includes custom page templates that I'd like to
> keep in subdirectories. There's some code that explicitly removes this
> ability (
> https://core.trac.wordpress.org/browser/trunk/wp-admin/includes/theme.php#L177)
> and I'm curious why it's there.
>
> There don't seem to be any filters that I could use to circumvent this, so
> without modifying core I seem to be limited to the top-level theme
> directory. This seems unnecessarily restrictive, but maybe I'm missing
> something?
>


More information about the wp-hackers mailing list