Fix posting to wordpress
authorMichael <heluecht@pirati.ca>
Sat, 24 Nov 2018 00:21:51 +0000 (00:21 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 24 Nov 2018 00:21:51 +0000 (00:21 +0000)
wppost/wppost.php

index 7fdc025..018e86c 100644 (file)
@@ -218,8 +218,8 @@ function wppost_post_local(&$a, &$b) {
 
 
 
-function wppost_send(&$a,&$b) {
-
+function wppost_send(&$a, &$b)
+{
        if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
                return;
        }
@@ -240,7 +240,7 @@ function wppost_send(&$a,&$b) {
        }
 
        $wp_username = XML::escape(PConfig::get($b['uid'], 'wppost', 'wp_username'));
-       $wp_password = XML::escape(PConfig::get($b['uid'], 'wppost',wp_password'));
+       $wp_password = XML::escape(PConfig::get($b['uid'], 'wppost', 'wp_password'));
        $wp_blog = PConfig::get($b['uid'],'wppost','wp_blog');
        $wp_backlink_text = PConfig::get($b['uid'],'wppost','wp_backlink_text');
        if ($wp_backlink_text == '') {