]> git.mxchange.org Git - friendica-addons.git/blobdiff - wppost/wppost.php
add title
[friendica-addons.git] / wppost / wppost.php
index 479ad6f1699a1773fec04f68af59ce1d6ba5877a..9aac6c3801987e3c2fb517ef841d78ef1bda122c 100644 (file)
@@ -136,7 +136,10 @@ function wppost_send(&$a,&$b) {
        if($wp_username && $wp_password && $wp_blog && $wp_post && $wp_enable) {
 
                require_once('include/bbcode.php');
-               $post = xmlify(bbcode($b['body']));
+
+               $post = (($b['title']) ? '<title>' . $b['title'] . '</title>' : '');
+               $post .= bbcode($b['body']);
+                       $post = xmlify($post);
 
                $xml = <<< EOT