This commit is contained in:
rodolfomartinez 2026-02-02 00:13:36 -05:00
parent 572552ff13
commit 847ed92c23
10 changed files with 1232 additions and 591 deletions

View file

@ -74,13 +74,14 @@ function mlf_uninstall() {
wp_delete_post($font_id, true);
}
$processed += count($fonts);
$fonts_count = count($fonts);
$processed += $fonts_count;
// Free memory
unset($fonts, $all_faces);
// If we got fewer than batch_size, we're done
if (count($fonts) < $batch_size) {
if ($fonts_count < $batch_size) {
break;
}
}