From c401d5c906283f91a6e86ae392eaef56d3a72fbf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 21 Nov 2010 21:50:11 +0300 Subject: [PATCH] blacklist option OPEN_LINKS_IN_NEW_WINDOW, default to rewrite links to open in new windows --- functions.php | 4 +--- modules/pref-prefs.php | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index 2dc2a16d6..1db2d2738 100644 --- a/functions.php +++ b/functions.php @@ -3690,9 +3690,7 @@ } if (strtolower($entry->nodeName) == "a") { - if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW', $owner)) { - $entry->setAttribute("target", "_blank"); - } + $entry->setAttribute("target", "_blank"); } if (strtolower($entry->nodeName) == "img" && !$br_inserted) { diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 178652374..5bc180de4 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -15,7 +15,8 @@ $prefs_blacklist = array("HIDE_FEEDLIST", "SYNC_COUNTERS", "ENABLE_LABELS", "ENABLE_SEARCH_TOOLBAR", "HIDE_READ_FEEDS", "ENABLE_FEED_ICONS", - "ENABLE_OFFLINE_READING", "EXTENDED_FEEDLIST", "FEEDS_SORT_BY_UNREAD"); + "ENABLE_OFFLINE_READING", "EXTENDED_FEEDLIST", "FEEDS_SORT_BY_UNREAD", + "OPEN_LINKS_IN_NEW_WINDOW"); $profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS", "PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP",