Changeset 1156549
- Timestamp:
- 05/08/2015 10:47:26 PM (11 years ago)
- Location:
- wp-mobile-detector
- Files:
-
- 2 edited
-
tags/3.1/functions.php (modified) (2 diffs)
-
trunk/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-mobile-detector/tags/3.1/functions.php
r1156375 r1156549 565 565 566 566 //Default options for the customizable mobile theme 567 $websitez_options = array(567 $websitez_options_default = array( 568 568 'colors' => array( 569 569 "custom_color_light"=>"4f7498", … … 610 610 611 611 //Set the default options if they do not exist 612 if(!get_option("websitez-options")) 613 add_option("websitez-options", serialize($websitez_options), '', 'yes'); 612 $websitez_options = websitez_get_options(); 613 if(!$websitez_options){ 614 websitez_set_options($websitez_options_default); 615 }else{ 616 if(strlen($websitez_options['general']['password']) == 0){ 617 $websitez_options['general']['password'] = websitez_gen_uuid(); 618 websitez_set_options($websitez_options); 619 } 620 } 614 621 615 622 if(!get_option(WEBSITEZ_LICENSE_KEY_NAME)) -
wp-mobile-detector/trunk/functions.php
r1156375 r1156549 565 565 566 566 //Default options for the customizable mobile theme 567 $websitez_options = array(567 $websitez_options_default = array( 568 568 'colors' => array( 569 569 "custom_color_light"=>"4f7498", … … 610 610 611 611 //Set the default options if they do not exist 612 if(!get_option("websitez-options")) 613 add_option("websitez-options", serialize($websitez_options), '', 'yes'); 612 $websitez_options = websitez_get_options(); 613 if(!$websitez_options){ 614 websitez_set_options($websitez_options_default); 615 }else{ 616 if(strlen($websitez_options['general']['password']) == 0){ 617 $websitez_options['general']['password'] = websitez_gen_uuid(); 618 websitez_set_options($websitez_options); 619 } 620 } 614 621 615 622 if(!get_option(WEBSITEZ_LICENSE_KEY_NAME))
Note: See TracChangeset
for help on using the changeset viewer.