summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-05-14 07:53:02 +0100
committerAndrew Dolgov <[email protected]>2007-05-14 07:53:02 +0100
commit40e1a95b20a44354126ab3b0ec4a87e42e16e483 (patch)
tree4505be94dd08d4c8df6da33f3b62c4d18b6bf9cf /functions.php
parenta349077cc4d2365a74d95907fdc5f648cfa38659 (diff)
tweak tag detection (use all rel='tag' links)
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 6d3a2cacc..f528edc9b 100644
--- a/functions.php
+++ b/functions.php
@@ -823,11 +823,11 @@
}
/* taaaags */
- // <a href="http://technorati.com/tag/Xorg" rel="tag">Xorg</a>, //
+ // <a href="..." rel="tag">Xorg</a>, //
$entry_tags = null;
- preg_match_all("/<a.*?href=.http:\/\/.*?technorati.com\/tag\/([^\"\'>]+)/i",
+ preg_match_all("/<a.*?rel=['\"]tag['\"].*?>([^<]+)<\/a>/i",
$entry_content_unescaped, $entry_tags);
// print "<br>$entry_title : $entry_content_unescaped<br>";