Index: wp-eolin-core.php
===================================================================
--- wp-eolin-core.php (revision 15)
+++ wp-eolin-core.php (working copy)
@@ -126,8 +126,16 @@
array_push($params['tags'], htmlspecialchars($category->cat_name));
}
- if (function_exists('utw_show_tags_for_current_post'))
+ if (function_exists('get_the_tags'))
{
+ $params['tags'] = array ();
+ foreach ((get_the_tags($post->ID)) as $tag)
+ {
+ array_push($params['tags'], htmlspecialchars($tag->name));
+ }
+ }
+ elseif (function_exists('utw_show_tags_for_current_post'))
+ {
global $utw;
$tags = $utw->getTagsForPost($id);
Index: wp-eolin-sync.php
===================================================================
--- wp-eolin-sync.php (revision 15)
+++ wp-eolin-sync.php (working copy)
@@ -49,8 +49,16 @@
$tag_displays .= "\n".' '.htmlspecialchars($category->cat_name).'';
}
- if (function_exists('utw_show_tags_for_current_post'))
+ if (function_exists('get_the_tags'))
{
+ $tag_displays = '';
+ foreach ((get_the_tags($post->ID)) as $tag)
+ {
+ $tag_displays .= "\n".' '.htmlspecialchars($tag->name).'';
+ }
+ }
+ elseif (function_exists('utw_show_tags_for_current_post'))
+ {
$tags = $utw->getTagsForPost($id);
foreach ($tags as $tag)
{