X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=wppost%2Fwppost.php;h=f9caf232857da1b62cb43ff958230a3de7a8022a;hb=bfcf9feca18a51524fa79e7415f56a430643e9f0;hp=0d860ef571290a9ef53ce0388b6d75f3e4480b6f;hpb=9640142a720dfc7683e7bbf60d6f4f8799b918e9;p=friendica-addons.git
diff --git a/wppost/wppost.php b/wppost/wppost.php
index 0d860ef5..f9caf232 100644
--- a/wppost/wppost.php
+++ b/wppost/wppost.php
@@ -12,7 +12,6 @@ use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\DI;
-use Friendica\Network\HTTPRequest;
use Friendica\Util\Strings;
use Friendica\Util\XML;
@@ -26,22 +25,6 @@ function wppost_install()
Hook::register('connector_settings_post', 'addon/wppost/wppost.php', 'wppost_settings_post');
}
-function wppost_uninstall()
-{
- Hook::unregister('hook_fork', 'addon/wppost/wppost.php', 'wppost_hook_fork');
- Hook::unregister('post_local', 'addon/wppost/wppost.php', 'wppost_post_local');
- Hook::unregister('notifier_normal', 'addon/wppost/wppost.php', 'wppost_send');
- Hook::unregister('jot_networks', 'addon/wppost/wppost.php', 'wppost_jot_nets');
- Hook::unregister('connector_settings', 'addon/wppost/wppost.php', 'wppost_settings');
- Hook::unregister('connector_settings_post', 'addon/wppost/wppost.php', 'wppost_settings_post');
-
- // obsolete - remove
- Hook::unregister('post_local_end', 'addon/wppost/wppost.php', 'wppost_send');
- Hook::unregister('addon_settings', 'addon/wppost/wppost.php', 'wppost_settings');
- Hook::unregister('addon_settings_post', 'addon/wppost/wppost.php', 'wppost_settings_post');
-}
-
-
function wppost_jot_nets(\Friendica\App &$a, array &$jotnets_fields)
{
if (!local_user()) {
@@ -61,7 +44,7 @@ function wppost_jot_nets(\Friendica\App &$a, array &$jotnets_fields)
}
-function wppost_settings(&$a,&$s) {
+function wppost_settings(&$a, &$s) {
if(! local_user())
return;
@@ -101,8 +84,9 @@ function wppost_settings(&$a,&$s) {
$s .= '