From efcc664aba9f2f11de92c69a7f3159bfd2b4696a Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 28 Sep 2008 17:50:05 +0000 Subject: Update: Modifed Wordpress plugin Closes #66 --- update/plugin/wordpress/trunk/instadisc/instadisc.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'update') diff --git a/update/plugin/wordpress/trunk/instadisc/instadisc.php b/update/plugin/wordpress/trunk/instadisc/instadisc.php index b56bb20..3cb711c 100644 --- a/update/plugin/wordpress/trunk/instadisc/instadisc.php +++ b/update/plugin/wordpress/trunk/instadisc/instadisc.php @@ -1,7 +1,7 @@ display_name; $url = get_permalink($id); + foreach (wp_get_post_categories($id) as $value) + { + $tags[] = get_cat_name($value); + } + + foreach (wp_get_post_tags($id) as $value) + { + $tags[] = $value->name; + } + + $semantics = array('tag' => implode($tags,',')); + $subscriptionURL = 'http://' . $_SERVER['SERVER_NAME'] . '/blog-post/' . generateSlug(get_option('instaDisc_subscription_title')) . '/'; $encID = 0; @@ -129,7 +140,7 @@ function sendPost($id) new xmlrpcval($title, 'string'), new xmlrpcval($authorName, 'string'), new xmlrpcval($url, 'string'), - new xmlrpcval(serialize(array()), 'string'), + new xmlrpcval(serialize($semantics), 'string'), new xmlrpcval($encID, 'int'))); $resp = $client->send($msg); $val = $resp->value()->scalarVal(); -- cgit 1.4.1