瀏覽代碼

Document bad assumption

pdontthink 7 年之前
父節點
當前提交
ddd1460317
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      functions/options.php

+ 2 - 0
functions/options.php

@@ -235,6 +235,8 @@ class SquirrelOption {
         //Check for a current value.  
         //Check for a current value.  
         if (isset($GLOBALS[$name])) {
         if (isset($GLOBALS[$name])) {
             $this->value = $GLOBALS[$name];
             $this->value = $GLOBALS[$name];
+        // TODO: This code should be something more like the following, but who knows what would break if it was changed at this point
+        // } else if (initial_value !== '') {
         } else if (!empty($initial_value)) {
         } else if (!empty($initial_value)) {
             $this->value = $initial_value;
             $this->value = $initial_value;
         } else {
         } else {