Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 28a1436c63775875666b4421ce0cd144393219e8 1 parent 55240f4
Alex Chapin authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  functions/theme-options.php
3  functions/theme-options.php
View
@@ -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'];
Please sign in to comment.
Something went wrong with that request. Please try again.