v1-pre
This commit is contained in:
parent
572552ff13
commit
847ed92c23
10 changed files with 1232 additions and 591 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue