<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@
 Plugin Name: Tumblrize
 Plugin URI: http://tumblrize.ijulien.com/
 Description: Automatically crossposts to your Tumblr blog when you publish a post on your WordPress blog.
-Version: 1.3.5
+Version: 1.3.6
 Author: &lt;a href=&quot;http://ijulien.com/&quot;&gt;Julien Ott&lt;/a&gt; and &lt;a href=&quot;http://maymay.net/&quot;&gt;Meitar Moscovitz&lt;/a&gt;
 Author URI: http://ijulien.com
 */
@@ -33,7 +33,7 @@ define('WP_DEBUG', true);
 // DON'T use Tumblrize for SPAM.
 
 if (!defined('TUMBLRIZE_PLUGIN_VERISON')) {
-    define('TUMBLRIZE_PLUGIN_VERSION', '1.3.5');
+    define('TUMBLRIZE_PLUGIN_VERSION', '1.3.6');
 } else { die('A constant named TUMBLRIZE_PLUGIN_VERSION has already been defined.'); }
 
 // Load helper functions.
@@ -67,7 +67,7 @@ class TumblrizePlugin {
      * Checks to ensure user wishes to Tumblrize this post.
      *
      * @param int $post_ID Numeric ID of the WordPress post to check. Defaults to NULL.
-     * @return True if this post should be crossposted, false otherwise.
+     * @return bool True if this post should be crossposted, false otherwise.
      */
     // TODO: Enable WordPress delete post operations to be overriden on per-post basis.
     //       Right now, when you delete a WordPress, the individual &quot;Crosspost to Tumblr?&quot;
@@ -108,15 +108,14 @@ class TumblrizePlugin {
     function tumblrize ($post_ID) {
 
         // DATA Preparation
-        $post       = get_post($post_ID);
-        $generator  = $this-&gt;generator;
+        $post = get_post($post_ID);
 
         // Do not crosspost if not requested for this post.
         if (!$this-&gt;isTumblrizeablePost($post_ID)) { return $post_ID; }
 
         $post_group = get_post_meta($post_ID, 'tumblrize_post-group', true);
         $post_type  = get_post_meta($post_ID, 'tumblrize_post-type', true);
-        $post_date = $post-&gt;post_date_gmt . ' GMT'; // use UTC; avoid TZ issues
+        $post_date  = $post-&gt;post_date_gmt . ' GMT'; // use UTC; avoid TZ issues
         $post_title = html_entity_decode($post-&gt;post_title);
         $post_body  = wpautop(str_replace('\&quot;', &quot;&quot;, html_entity_decode($post-&gt;post_content)));
 
@@ -190,7 +189,7 @@ class TumblrizePlugin {
             $request_data['type']      = $post_type;
             $request_data['date']      = $post_date;
             $request_data['tags']      = $tags;
-            $request_data['generator'] = $generator;
+            $request_data['generator'] = $this-&gt;generator;
 
             switch ($post_type) {
                 case 'photo':
@@ -299,7 +298,7 @@ class TumblrizePlugin {
                                      'password' =&gt; $this-&gt;tpassword,
                                      'post-id' =&gt; get_post_meta($post_ID, 'tumblrize_post-id', true),
                                      'group' =&gt; get_post_meta($post_ID, 'tumblrize_post-group', true),
-                                     'generator' =&gt; 'Tumblrize'
+                                     'generator' =&gt; $this-&gt;generator
                                 ));
         }
     }
@@ -388,14 +387,7 @@ class TumblrizePlugin {
         if (!is_array($_SESSION['tumblrize_messages'])) {
             $_SESSION['tumblrize_messages'] = array();
         }
-        if (is_array($class)) {
-            $str = '';
-            foreach ($class as $x) {
-                if (!is_string($x)) { continue; }
-                $str .= &quot;$x &quot;;
-            }
-            $class = $str;
-        }
+        if (is_array($class)) { $class = implode(' ', $class); }
         $class = htmlentities($class, ENT_QUOTES, 'UTF-8'); // escape output
         $_SESSION['tumblrize_messages'][] = &quot;&lt;div class=\&quot;$class\&quot;&gt;&lt;p&gt;$msg&lt;/p&gt;&lt;/div&gt;&quot;;
     }</diff>
      <filename>tumblrize.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>35f1980948b6e3d31269c29d1e22369e3a7156cf</id>
    </parent>
  </parents>
  <author>
    <name>Meitar Moscovitz</name>
    <email>meitarm@gmail.com</email>
  </author>
  <url>http://github.com/meitar/tumblrize/commit/eb6c8cface15a5857f5a40d4f077fe2209d7e387</url>
  <id>eb6c8cface15a5857f5a40d4f077fe2209d7e387</id>
  <committed-date>2009-10-27T04:06:32-07:00</committed-date>
  <authored-date>2009-10-27T04:06:32-07:00</authored-date>
  <message>Version bump; minor code cleanup.</message>
  <tree>f3685eb6a673d1080505f16d4c2fa9faba663a08</tree>
  <committer>
    <name>Meitar Moscovitz</name>
    <email>meitarm@gmail.com</email>
  </committer>
</commit>
