Skip to content

Commit

Permalink
Update projects/packages/sync/src/modules/class-terms.php
Browse files Browse the repository at this point in the history
Co-authored-by: Foteini Giannaropoulou <[email protected]>
  • Loading branch information
darssen and fgiannar authored Oct 7, 2024
1 parent 05695d2 commit 7b9831f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/packages/sync/src/modules/class-terms.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7b9831f

Please sign in to comment.