From 8fc70781f85ac443f287f9541c235dab01c5b607 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 May 2007 08:47:00 +0100 Subject: do not auto-apply tags specified in BLACKLISTED_TAGS --- functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 050780dd4..3087b9b6a 100644 --- a/functions.php +++ b/functions.php @@ -875,9 +875,12 @@ } } + $boring_tags = trim_array(split(",", get_pref($link, + 'BLACKLISTED_TAGS', $owner_uid, ''))); + if ($additional_tags && is_array($additional_tags)) { foreach ($additional_tags as $tag) { - if (tag_is_valid($tag)) { + if (tag_is_valid($tag) && !array_key_exists($tag, $boring_tags)) { array_push($entry_tags, $tag); } } -- cgit v1.2.3