Skip to content

Commit

Permalink
Automatic bad slug delete 32 by 32
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-jacob committed Nov 26, 2024
1 parent f392cb2 commit ec8d9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/slug.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ function wplng_get_slugs_from_query() {

if ( ! empty( $slug_to_delete ) ) {
foreach ( $slug_to_delete as $key => $id ) {
if ( $key >= 50 ) {
if ( $key >= 32 ) {
break;
}
wp_delete_post( $id, true );
Expand Down

0 comments on commit ec8d9a4

Please sign in to comment.