Permalink
Browse files

added theme-name and theme-url options to translucence_get_variation_…

…default_config()

to enable child themes to have their own name and url
  • Loading branch information...
1 parent 55240f4 commit 28a1436c63775875666b4421ce0cd144393219e8 @marpa committed Jun 28, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 functions/theme-options.php
View
3 functions/theme-options.php
@@ -401,6 +401,9 @@ function translucence_get_variation_default() {
function translucence_get_variation_default_config() {
global $translucence_config, $translucence_options;
+ if (!isset($translucence_options['theme-name'])) $translucence_options['theme-name'] = $translucence_config['theme-name'];
+ if (!isset($translucence_options['theme-url'])) $translucence_options['theme-url'] = $translucence_config['theme-url'];
+
if (!isset($translucence_options['activated-theme'])) $translucence_options['activated-theme'] = $translucence_config['activated-theme'];
if (!isset($translucence_options['activated-widgets'])) $translucence_options['activated-widgets'] = $translucence_config['activated-widgets'];
if (!isset($translucence_options['widgets'])) $translucence_options['widgets'] = $translucence_config['widgets'];

0 comments on commit 28a1436

Please sign in to comment.