From: Michael Date: Sat, 24 Nov 2018 00:21:51 +0000 (+0000) Subject: Fix posting to wordpress X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=148ca9d670793f89462f2d3f5db752415d8e561a;p=friendica-addons.git Fix posting to wordpress --- diff --git a/wppost/wppost.php b/wppost/wppost.php index 7fdc0257..018e86c4 100644 --- a/wppost/wppost.php +++ b/wppost/wppost.php @@ -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 == '') {