]> git.mxchange.org Git - friendica-addons.git/commitdiff
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 7fdc0257faee06f58119bef8cdb67961c965d1e2..018e86c4e1f57e42032f546372900518b25eab55 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 == '') {