From 7b9831fb4ff23e632c7442dfef9ecda2326a91f4 Mon Sep 17 00:00:00 2001 From: Juanma Rodriguez Escriche Date: Mon, 7 Oct 2024 15:05:29 +0200 Subject: [PATCH] Update projects/packages/sync/src/modules/class-terms.php Co-authored-by: Foteini Giannaropoulou --- projects/packages/sync/src/modules/class-terms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/packages/sync/src/modules/class-terms.php b/projects/packages/sync/src/modules/class-terms.php index 90555f0350247..ba385a3415ea8 100644 --- a/projects/packages/sync/src/modules/class-terms.php +++ b/projects/packages/sync/src/modules/class-terms.php @@ -280,7 +280,7 @@ public function filter_blacklisted_taxonomies( $args ) { */ public function filter_set_object_terms_no_update( $args ) { // Check if the taxonomy is blacklisted. $args[3] is the taxonomy. - if ( in_array( $args[3], Settings::get_setting( 'taxonomies_blacklist' ), true ) ) { + if ( isset( $args[3] ) && in_array( $args[3], Settings::get_setting( 'taxonomies_blacklist' ), true ) ) { return false; } // There is potential for other plugins to modify args, therefore lets validate # of and types.