| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | |
| 27 | 27 | echo "<br>\n"; |
| 28 | 28 | foreach(PhaseCoordinatorJob::PHASES as $idx => $phaseText) { |
| 29 | 29 | |
| 30 | - $phaseStatus = $currentPhase > $idx ? '✓ ' : ''; | |
| 30 | + $phaseStatus = $currentPhase > $idx ? '✓ ' : ''; | |
| 31 | 31 | $taskDescription = ''; |
| 32 | 32 | |
| 33 | 33 | if ($currentPhase == $idx) { |
| 34 | 34 | |
| @@ -43,14 +43,20 @@ | ||
| 43 | 43 | } |
| 44 | 44 | if ($idx == $currentPhase) { |
| 45 | 45 | echo "<b>"; |
| 46 | 46 | } |
| 47 | - echo sprintf('%s%s%s', $phaseStatus, esc_html($phaseText), esc_html($taskDescription)); | |
| 47 | + echo sprintf('%s%s%s', esc_html($phaseStatus), esc_html($phaseText), esc_html($taskDescription)); | |
| 48 | 48 | if ($idx == $currentPhase) { |
| 49 | 49 | echo "</b>"; |
| 50 | 50 | } |
| 51 | 51 | echo "<br>\n"; |
| 52 | 52 | } |
| 53 | + | |
| 54 | + // debug counter | |
| 55 | + $counter = (int) sanitize_text_field(wp_unslash($_POST['counter'] ?? 0)); | |
| 56 | + $counter++; | |
| 57 | + echo '<input type="hidden" name="counter" value="' . esc_attr($counter) . '">'; | |
| 58 | + echo "<br>\nRunning for " . esc_html($counter) . " seconds...<br>\n"; | |
| 53 | 59 | |
| 54 | 60 | wp_die(); // All ajax handlers should die when finished |
| 55 | 61 | } |
| 56 | 62 | |