use Friendica\Core\PConfig;
use Friendica\Database\DBA;
use Friendica\Util\Network;
-use Friendica\Util\XML;
+use Friendica\Util\Strings;
function wppost_install() {
Addon::registerHook('post_local', 'addon/wppost/wppost.php', 'wppost_post_local');
return;
}
- $wp_username = XML::(PConfig::get($b['uid'], 'wppost', 'wp_username'));
- $wp_password = XML::escape(PConfig::get($b['uid'], 'wppost',' wp_password'));
+ $wp_username = Strings::escape(PConfig::get($b['uid'], 'wppost', 'wp_username'));
+ $wp_password = Strings::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 == '') {
. $wp_backlink_text . '</a>' . EOL . EOL;
}
- $post = XML::escape($post);
+ $post = Strings::escape($post);
$xml = <<< EOT