[wp-trac] [WordPress Trac] #20103: Rewrite get_themes() and other enemies of sanity
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 29 02:59:53 UTC 2012
#20103: Rewrite get_themes() and other enemies of sanity
--------------------------+---------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.4
Component: Themes | Version: 1.5
Severity: normal | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Comment (by nacin):
In [20312]:
{{{
#!CommitTicketReference repository="" revision="20312"
Introduce WP_Theme->exists() to check if the queried theme actually
exists. WP_Theme->exists() is a subset of errors() -- a theme with errors
may still exist, but a theme that does not exist has an error of
theme_not_found. wp_get_theme() now returns false if the theme does not
exist. Improve scandir() and get_files() logic. see #20103.
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20103#comment:35>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list