← All changes
|
includes/extensions/Custom_Code_Manager/Custom_Code_Manager.php
+10
-10
51.1.76
→
51.1.83
View file →
| @@ -187,9 +187,9 @@ | ||
| 187 | 187 | |
| 188 | 188 | // Theme mode (shared across all views) |
| 189 | 189 | $theme_mode = get_user_meta(get_current_user_id(), 'king_addons_theme_mode', true); |
| 190 | 190 | if (!in_array($theme_mode, ['light', 'dark', 'auto'], true)) { |
| 191 | - $theme_mode = 'dark'; | |
| 191 | + $theme_mode = 'auto'; | |
| 192 | 192 | } |
| 193 | 193 | // Store for sub-renderers |
| 194 | 194 | $this->theme_mode = $theme_mode; |
| 195 | 195 | |
| @@ -1597,15 +1597,15 @@ | ||
| 1597 | 1597 | if (empty($this->debug_log)) { |
| 1598 | 1598 | return; |
| 1599 | 1599 | } |
| 1600 | 1600 | |
| 1601 | - echo "\n<!-- King Addons Custom Code Debug Log -->\n"; | |
| 1602 | - echo "<script>\n"; | |
| 1603 | - echo "console.group('King Addons Custom Code Manager');\n"; | |
| 1604 | - foreach ($this->debug_log as $entry) { | |
| 1605 | - $status = $entry['result'] ? '🟢' : '🔴'; | |
| 1606 | - echo "console.log('" . $status . " " . esc_js($entry['snippet']) . " (ID: " . $entry['id'] . ")');\n"; | |
| 1607 | - } | |
| 1608 | - echo "console.groupEnd();\n"; | |
| 1609 | - echo "</script>\n"; | |
| 1601 | + // echo "\n<!-- King Addons Custom Code Debug Log -->\n"; | |
| 1602 | + // echo "<script>\n"; | |
| 1603 | + // echo "console.group('King Addons Custom Code Manager');\n"; | |
| 1604 | + // foreach ($this->debug_log as $entry) { | |
| 1605 | + // $status = $entry['result'] ? '🟢' : '🔴'; | |
| 1606 | + // echo "console.log('" . $status . " " . esc_js($entry['snippet']) . " (ID: " . $entry['id'] . ")');\n"; | |
| 1607 | + // } | |
| 1608 | + // echo "console.groupEnd();\n"; | |
| 1609 | + // echo "</script>\n"; | |
| 1610 | 1610 | } |
| 1611 | 1611 | } |