From da53dbb6749db16649d39cc50fef6b58239b822e Mon Sep 17 00:00:00 2001 From: UVLabs Date: Fri, 8 Apr 2022 17:48:46 -0400 Subject: [PATCH 1/4] fix: change when post publish date update occurs --- includes/admin/class-rop-admin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/admin/class-rop-admin.php b/includes/admin/class-rop-admin.php index 586c0d059..276b32f82 100644 --- a/includes/admin/class-rop-admin.php +++ b/includes/admin/class-rop-admin.php @@ -1125,6 +1125,7 @@ public function rop_cron_job() { continue; } + do_action( 'rop_before_prepare_post', $post ); $post_data = $queue->prepare_post_object( $post, $account ); if ( $revive_network_active ) { @@ -1149,6 +1150,7 @@ public function rop_cron_job() { $duplicate = $posts_selector_model->buffer_has_post_id( $account, $post ); if ( $duplicate === false ) { + do_action( 'rop_before_share', $post_data ); $response = $service->share( $post_data, $account_data ); } else { $logger->info( Rop_I18n::get_labels( 'sharing.post_already_shared' ), array( 'extra' => $post_data ) ); From fd5dea8e22e7536cf6d2914d84d6d0c80b0893a8 Mon Sep 17 00:00:00 2001 From: UVLabs Date: Thu, 21 Apr 2022 16:38:12 -0400 Subject: [PATCH 2/4] chore: change tested up to version --- tweet-old-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweet-old-post.php b/tweet-old-post.php index 1ad7e7320..c28aafa6f 100644 --- a/tweet-old-post.php +++ b/tweet-old-post.php @@ -20,7 +20,7 @@ * Author: revive.social * Author URI: https://revive.social/ * Requires at least: 3.5 - * Tested up to: 5.7 + * Tested up to: 5.9 * Stable tag: trunk * WordPress Available: yes * Pro Slug: tweet-old-post-pro From 48f82e4abd5a3cc63e8839f20bb4e301147334db Mon Sep 17 00:00:00 2001 From: UVLabs Date: Thu, 21 Apr 2022 16:39:15 -0400 Subject: [PATCH 3/4] chore: check if legacy linkedin api is object before trying to access method on it --- includes/admin/services/class-rop-linkedin-service.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/admin/services/class-rop-linkedin-service.php b/includes/admin/services/class-rop-linkedin-service.php index d9169e756..3d955d8a8 100644 --- a/includes/admin/services/class-rop-linkedin-service.php +++ b/includes/admin/services/class-rop-linkedin-service.php @@ -250,6 +250,10 @@ public function authenticate( $args ) { $api = $this->get_api( $args['client_id'], $args['secret'] ); + if( ! is_object( $api ) ){ + return false; + } + $this->credentials['token'] = $token; $this->credentials['client_id'] = $args['client_id']; $this->credentials['secret'] = $args['secret']; From 983833cee7bcb6d4f52581d3821d8242783d6793 Mon Sep 17 00:00:00 2001 From: UVLabs Date: Thu, 21 Apr 2022 17:01:31 -0400 Subject: [PATCH 4/4] chore: delete some old settings --- uninstall.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/uninstall.php b/uninstall.php index 419d55899..6fdf47a1a 100644 --- a/uninstall.php +++ b/uninstall.php @@ -89,12 +89,35 @@ 'rop_facebook_via_rs_app', 'rop_twitter_via_rs_app', 'rop_linkedin_via_rs_app', + 'rop_db_version', + 'rop_pro_db_version', + 'rop_first_install_date', 'rop_first_install_version', 'rop_linkedin_refresh_token_notice', 'rop_buffer_via_rs_app', 'rop_tumblr_via_rs_app', 'rop_data_migrated_tax', 'rop_changed_shortener', + /** + * Old ROP options + */ + 'cwp_topnew_active_status', + 'cwp_topnew_notice', + 'cwp_top_app_id', + 'cwp_top_app_secret', + 'cwp_top_consumer_key_tumblr', + 'cwp_top_consumer_secret_tumblr', + 'cwp_top_consumer_url_tumblr', + 'cwp_top_global_schedule', + 'cwp_top_lk_app_id', + 'cwp_top_lk_app_secret', + 'cwp_top_logged_in_users', + 'cwp_top_oauth_token', + 'cwp_top_oauth_token_secret', + 'cwp_top_oauth_token_secret_tumblr', + 'cwp_top_oauth_token_tumblr', + 'top_settings', + /** * Related functions *