[wp-trac] [WordPress Trac] #14874: Add New Filter to validate_current_theme
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 21 20:52:18 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 has-patch
-------------------------+--------------------------------------------------
Comment(by transom):
It is an interesting issue. My case would be that returning a WP_Error
object and delivering the results in the theme.php file is more WordPress-
like in it current incarnation than a generic true/false.
If it is felt that there might be enough plugins that break with this
change, but the patch is desirable. We are then left with the "ugly" need
to deprecate another function in favor of a new function.
I would suggest that the output of the current function is so useless as
to be not used by many (if any) plugins/themes out there. It is kind of an
obscure corner of WordPress.
I see that 1) there haven't been any changes in this part of the code
since 2008 and 2) this change would allow better documentation for the
case of a missing Default theme. (##11282, #14175)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14874#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list