From 0abc3d2b8c1d41984c288bfed93b8ab35da47d5e Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 5 Aug 2008 15:57:07 +0000 Subject: Update: Fixed author display in Wordpress plugin Also fixed a typo in the admin panel and removed the postfix from the comments' subscription's title. Fixes #20. --- update/plugin/wordpress/trunk/instadisc/instadisc.php | 10 +++++----- update/plugin/wordpress/trunk/instadisc/subscription.php | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/update/plugin/wordpress/trunk/instadisc/instadisc.php b/update/plugin/wordpress/trunk/instadisc/instadisc.php index 2419e70..629987e 100644 --- a/update/plugin/wordpress/trunk/instadisc/instadisc.php +++ b/update/plugin/wordpress/trunk/instadisc/instadisc.php @@ -41,10 +41,9 @@ function id_settings_page()

General

-
+ -
Because you have two subscriptions (blog posts and comments), you can specify a prefix to go before both subscriptions' titles. So, if the prefix was "Four Island", the blog post's title would be "Four Island" and the comments' would be "Four Island Comments".
@@ -125,7 +124,7 @@ function id_settings_page() - +

post_title; - $author = $post->post_author; + $author = get_userdata($post->post_author); + $authorName = $author->display_name; $url = get_permalink($id); $verID = rand(1,65536); @@ -149,7 +149,7 @@ function sendPost($id) new xmlrpcval($verID, 'int'), new xmlrpcval(get_option('siteurl') . '/', 'string'), new xmlrpcval($title, 'string'), - new xmlrpcval($author, 'string'), + new xmlrpcval($authorName, 'string'), new xmlrpcval($url, 'string'), new xmlrpcval(array(), 'array'))); $client->send($msg); diff --git a/update/plugin/wordpress/trunk/instadisc/subscription.php b/update/plugin/wordpress/trunk/instadisc/subscription.php index bdf51d9..d7ffa86 100644 --- a/update/plugin/wordpress/trunk/instadisc/subscription.php +++ b/update/plugin/wordpress/trunk/instadisc/subscription.php @@ -11,7 +11,6 @@ if (isset($_GET['comment'])) echo('Title: '); echo(get_option('instaDisc_subscription_title')); - echo(' Comments'); echo("\n"); echo('Category: blog-comment'); -- cgit 1.4.1