Browse Source

Workaround for the "catalan" bug. This leaves blank language
when it has not been set. Which is correct in my opinion, and
default language is used (but not set) instead.

philippe_mingo 23 năm trước cách đây
mục cha
commit
fb848ecae4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/options_display.php

+ 1 - 1
src/options_display.php

@@ -46,7 +46,7 @@ function load_optpage_data_display() {
         'save'    => 'save_option_theme'
     );
 
-    $language_values = array();
+    $language_values = array('');
     foreach ($languages as $lang_key => $lang_attributes) {
         if (isset($lang_attributes['NAME'])) {
             $language_values[$lang_key] = $lang_attributes['NAME'];