From f392cb2c83f1bbda2023eed7469e8707ddc6616c Mon Sep 17 00:00:00 2001 From: Julien MA Jacob Date: Mon, 25 Nov 2024 22:20:46 -0200 Subject: [PATCH] Automatic delete wp-includes and wp-json slug --- inc/slug.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/slug.php b/inc/slug.php index 899d6a5..fe77497 100644 --- a/inc/slug.php +++ b/inc/slug.php @@ -391,7 +391,10 @@ function wplng_get_slugs_from_query() { $source = sanitize_title( $meta['wplng_slug_original'][0] ); - if ( 'index-php' === $source ) { + if ( 'index-php' === $source + || 'wp-includes' === $source + || 'wp-json' === $source + ) { $slug_to_delete[] = $slug_id; continue; }