[wp-trac] [WordPress Trac] #14874: Add New Filter to validate_current_theme
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 14 20:24:12 UTC 2010
#14874: Add New Filter to validate_current_theme
-------------------------+--------------------------------------------------
Reporter: transom | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.1
Severity: normal | Keywords: theme
-------------------------+--------------------------------------------------
I am finding that as I build more complicated themes, I need to check for
prerequisites (certain plugins, php5, whatever). The current function has
no means of catching the theme activation and checking.
Attached is a patch that add a new validate_current_theme_requirements to
the function. The patch also modifies the wp-admin/themes.php to check for
a WP_Error result and output the provided error.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14874>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list