[wpmu-trac] [WordPress MU Trac] #284: allowed_themes should be
based the theme directory name, not friendly name
WordPress MU Trac
wpmu-trac at lists.automattic.com
Thu Mar 22 05:07:33 GMT 2007
#284: allowed_themes should be based the theme directory name, not friendly name
--------------------------+-------------------------------------------------
Reporter: JeremyVisser | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: component1 | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Currently, in the {{{wp_sitemeta}}} table, there is an option named
{{{allowed_themes}}} which specifies the themes that users are allowed to
use.
However, the values stored in this option are that of the theme's name as
it appears to users, e.g. "!LiquidCard" or "!WordPress Classic".
I believe, instead, the option should store the directory names as the
allowed themes, e.g. "liquidcard-20" or "classic".
This is partly because this is the same way the user's theme preference is
stored. Also, it is partly because if a theme is renamed (like how I
renamed the "!WordPress mu Default" theme to "!WordPress Default" then
there were two "!WordPress Default" themes in separate directories) it
guarantees that it's going to be mutually exclusive. I could also rename a
theme for grammar reasons and it wouldn't annoyingly disable itself, as I
wouldn't change the directory name.
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/284>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list