[wp-trac] [WordPress Trac] #20103: Rewrite get_themes() and other enemies of sanity
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 28 10:20:40 UTC 2012
#20103: Rewrite get_themes() and other enemies of sanity
------------------------------+------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: Themes | Version: 1.5
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+------------------
Comment (by F J Kaiser):
Pretty nice class and +1 for translatable theme headers.
@Nacin: Some Questions...
''I only briefly looked over the code''
1. Couldn't - inside {{{function offsetGet( $offset )}}} - the default be
set to {{{return $this->display( $offset );}}} (instead of {{{null}}}), so
we'd have the ability to add (for e.g.) {{{DataBaseVersion}}} to the
header (we still have no update/-grage hook for themes)?
2. Extending the switch for Author & Description inside {{{function
sanitize_header( $header, $value )}}} - {{{wp_kses()}}} with the allowed
tags of {{{cite}}} for addresses and {{{strike}}} for update notes
wouldn't hurt. I'd also love to see {{{sub/sup}}} and maybe even {{{u}}}
be available.
3. For cases like [http://stackoverflow.com/questions/9411612/wordpress-
hiding-or-removing-parent-themes-templates/9413609 this one (filtering
page templates)] it would be nice to have a filter for the returned list
of themes. Currently it's only in use to build the templates drop-down for
the post edit/new screen.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20103#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list