mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 05:23:40 +00:00
Fix posting to wordpress
This commit is contained in:
parent
1375847d54
commit
148ca9d670
1 changed files with 3 additions and 3 deletions
|
@ -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'])) {
|
if($b['deleted'] || $b['private'] || ($b['created'] !== $b['edited'])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -240,7 +240,7 @@ function wppost_send(&$a,&$b) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$wp_username = XML::escape(PConfig::get($b['uid'], 'wppost', 'wp_username'));
|
$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_blog = PConfig::get($b['uid'],'wppost','wp_blog');
|
||||||
$wp_backlink_text = PConfig::get($b['uid'],'wppost','wp_backlink_text');
|
$wp_backlink_text = PConfig::get($b['uid'],'wppost','wp_backlink_text');
|
||||||
if ($wp_backlink_text == '') {
|
if ($wp_backlink_text == '') {
|
||||||
|
|
Loading…
Reference in a new issue