Revive Old Posts – Auto Post to Social Media - Version 9.0.7

Version Description

Download this release

Release Info

Developer rsocial
Plugin Icon 128x128 Revive Old Posts – Auto Post to Social Media
Version 9.0.7
Comparing to
See all releases

Code changes from version 9.0.6 to 9.0.7

CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  ##### [Version 9.0.6](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.5...v9.0.6) (2021-12-13)
2
 
3
  ### Fixes
1
+ ##### [Version 9.0.7](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.6...v9.0.7) (2022-04-21)
2
+
3
+ ### Info
4
+ - Update WP tested up to version
5
+ - Added two new hooks `rop_before_prepare_post` and `rop_before_share` that fire before post is shared
6
+ - Clean up some old options from version < 8.0 when housekeeping option is turned on
7
+
8
  ##### [Version 9.0.6](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.5...v9.0.6) (2021-12-13)
9
 
10
  ### Fixes
includes/admin/class-rop-admin.php CHANGED
@@ -1125,6 +1125,7 @@ class Rop_Admin {
1125
  continue;
1126
  }
1127
 
 
1128
  $post_data = $queue->prepare_post_object( $post, $account );
1129
 
1130
  if ( $revive_network_active ) {
@@ -1149,6 +1150,7 @@ class Rop_Admin {
1149
  $duplicate = $posts_selector_model->buffer_has_post_id( $account, $post );
1150
 
1151
  if ( $duplicate === false ) {
 
1152
  $response = $service->share( $post_data, $account_data );
1153
  } else {
1154
  $logger->info( Rop_I18n::get_labels( 'sharing.post_already_shared' ), array( 'extra' => $post_data ) );
1125
  continue;
1126
  }
1127
 
1128
+ do_action( 'rop_before_prepare_post', $post );
1129
  $post_data = $queue->prepare_post_object( $post, $account );
1130
 
1131
  if ( $revive_network_active ) {
1150
  $duplicate = $posts_selector_model->buffer_has_post_id( $account, $post );
1151
 
1152
  if ( $duplicate === false ) {
1153
+ do_action( 'rop_before_share', $post_data );
1154
  $response = $service->share( $post_data, $account_data );
1155
  } else {
1156
  $logger->info( Rop_I18n::get_labels( 'sharing.post_already_shared' ), array( 'extra' => $post_data ) );
includes/admin/services/class-rop-linkedin-service.php CHANGED
@@ -250,6 +250,10 @@ class Rop_Linkedin_Service extends Rop_Services_Abstract {
250
 
251
  $api = $this->get_api( $args['client_id'], $args['secret'] );
252
 
 
 
 
 
253
  $this->credentials['token'] = $token;
254
  $this->credentials['client_id'] = $args['client_id'];
255
  $this->credentials['secret'] = $args['secret'];
250
 
251
  $api = $this->get_api( $args['client_id'], $args['secret'] );
252
 
253
+ if( ! is_object( $api ) ){
254
+ return false;
255
+ }
256
+
257
  $this->credentials['token'] = $token;
258
  $this->credentials['client_id'] = $args['client_id'];
259
  $this->credentials['secret'] = $args['secret'];
includes/class-rop.php CHANGED
@@ -68,7 +68,7 @@ class Rop {
68
  public function __construct() {
69
 
70
  $this->plugin_name = 'rop';
71
- $this->version = '9.0.6';
72
 
73
  $this->load_dependencies();
74
  $this->set_locale();
68
  public function __construct() {
69
 
70
  $this->plugin_name = 'rop';
71
+ $this->version = '9.0.7';
72
 
73
  $this->load_dependencies();
74
  $this->set_locale();
readme.txt CHANGED
@@ -305,6 +305,16 @@ http://revive.social/plugins/revive-old-post
305
 
306
  == Changelog ==
307
 
 
 
 
 
 
 
 
 
 
 
308
  ##### [Version 9.0.6](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.5...v9.0.6) (2021-12-13)
309
 
310
  ### Fixes
305
 
306
  == Changelog ==
307
 
308
+ ##### [Version 9.0.7](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.6...v9.0.7) (2022-04-21)
309
+
310
+ ### Info
311
+ - Update WP tested up to version
312
+ - Added two new hooks and that fire before post is shared
313
+ - Clean up some old options from version < 8.0 when housekeeping option is turned on
314
+
315
+
316
+
317
+
318
  ##### [Version 9.0.6](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.5...v9.0.6) (2021-12-13)
319
 
320
  ### Fixes
tweet-old-post.php CHANGED
@@ -16,11 +16,11 @@
16
  * Plugin Name: Revive Old Posts
17
  * Plugin URI: https://revive.social/
18
  * Description: WordPress plugin that helps you to keeps your old posts alive by sharing them and driving more traffic to them from twitter/facebook or linkedin. It also helps you to promote your content. You can set time and no of posts to share to drive more traffic.For questions, comments, or feature requests, <a href="http://revive.social/support/?utm_source=plugindesc&utm_medium=announce&utm_campaign=top">contact </a> us!
19
- * Version: 9.0.6
20
  * Author: revive.social
21
  * Author URI: https://revive.social/
22
  * Requires at least: 3.5
23
- * Tested up to: 5.7
24
  * Stable tag: trunk
25
  * WordPress Available: yes
26
  * Pro Slug: tweet-old-post-pro
@@ -162,7 +162,7 @@ function run_rop() {
162
  define( 'ROP_CRON_ALTERNATIVE', $use_remote_cron );
163
 
164
  define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
165
- define( 'ROP_LITE_VERSION', '9.0.6' );
166
  define( 'ROP_LITE_BASE_FILE', __FILE__ );
167
  $debug = false;
168
  if ( function_exists( 'wp_get_environment_type' ) ) {
16
  * Plugin Name: Revive Old Posts
17
  * Plugin URI: https://revive.social/
18
  * Description: WordPress plugin that helps you to keeps your old posts alive by sharing them and driving more traffic to them from twitter/facebook or linkedin. It also helps you to promote your content. You can set time and no of posts to share to drive more traffic.For questions, comments, or feature requests, <a href="http://revive.social/support/?utm_source=plugindesc&utm_medium=announce&utm_campaign=top">contact </a> us!
19
+ * Version: 9.0.7
20
  * Author: revive.social
21
  * Author URI: https://revive.social/
22
  * Requires at least: 3.5
23
+ * Tested up to: 5.9
24
  * Stable tag: trunk
25
  * WordPress Available: yes
26
  * Pro Slug: tweet-old-post-pro
162
  define( 'ROP_CRON_ALTERNATIVE', $use_remote_cron );
163
 
164
  define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
165
+ define( 'ROP_LITE_VERSION', '9.0.7' );
166
  define( 'ROP_LITE_BASE_FILE', __FILE__ );
167
  $debug = false;
168
  if ( function_exists( 'wp_get_environment_type' ) ) {
uninstall.php CHANGED
@@ -89,12 +89,35 @@ if ( ! empty( $housekeeping ) ) {
89
  'rop_facebook_via_rs_app',
90
  'rop_twitter_via_rs_app',
91
  'rop_linkedin_via_rs_app',
 
 
 
92
  'rop_first_install_version',
93
  'rop_linkedin_refresh_token_notice',
94
  'rop_buffer_via_rs_app',
95
  'rop_tumblr_via_rs_app',
96
  'rop_data_migrated_tax',
97
  'rop_changed_shortener',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  /**
99
  * Related functions
100
  *
89
  'rop_facebook_via_rs_app',
90
  'rop_twitter_via_rs_app',
91
  'rop_linkedin_via_rs_app',
92
+ 'rop_db_version',
93
+ 'rop_pro_db_version',
94
+ 'rop_first_install_date',
95
  'rop_first_install_version',
96
  'rop_linkedin_refresh_token_notice',
97
  'rop_buffer_via_rs_app',
98
  'rop_tumblr_via_rs_app',
99
  'rop_data_migrated_tax',
100
  'rop_changed_shortener',
101
+ /**
102
+ * Old ROP options
103
+ */
104
+ 'cwp_topnew_active_status',
105
+ 'cwp_topnew_notice',
106
+ 'cwp_top_app_id',
107
+ 'cwp_top_app_secret',
108
+ 'cwp_top_consumer_key_tumblr',
109
+ 'cwp_top_consumer_secret_tumblr',
110
+ 'cwp_top_consumer_url_tumblr',
111
+ 'cwp_top_global_schedule',
112
+ 'cwp_top_lk_app_id',
113
+ 'cwp_top_lk_app_secret',
114
+ 'cwp_top_logged_in_users',
115
+ 'cwp_top_oauth_token',
116
+ 'cwp_top_oauth_token_secret',
117
+ 'cwp_top_oauth_token_secret_tumblr',
118
+ 'cwp_top_oauth_token_tumblr',
119
+ 'top_settings',
120
+
121
  /**
122
  * Related functions
123
  *
vendor/autoload.php CHANGED
@@ -2,6 +2,11 @@
2
 
3
  // autoload.php @generated by Composer
4
 
 
 
 
 
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit1b031ef921917ecc49edd013f19e3f78::getLoader();
2
 
3
  // autoload.php @generated by Composer
4
 
5
+ if (PHP_VERSION_ID < 50600) {
6
+ echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
7
+ exit(1);
8
+ }
9
+
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInit82f432fedca3df294bf4595f0de1d8c9::getLoader();
vendor/composer/ClassLoader.php CHANGED
@@ -149,7 +149,7 @@ class ClassLoader
149
 
150
  /**
151
  * @return string[] Array of classname => path
152
- * @psalm-var array<string, string>
153
  */
154
  public function getClassMap()
155
  {
149
 
150
  /**
151
  * @return string[] Array of classname => path
152
+ * @psalm-return array<string, string>
153
  */
154
  public function getClassMap()
155
  {
vendor/composer/InstalledVersions.php CHANGED
@@ -21,6 +21,8 @@ use Composer\Semver\VersionParser;
21
  * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
22
  *
23
  * To require its presence, you can require `composer-runtime-api ^2.0`
 
 
24
  */
25
  class InstalledVersions
26
  {
21
  * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
22
  *
23
  * To require its presence, you can require `composer-runtime-api ^2.0`
24
+ *
25
+ * @final
26
  */
27
  class InstalledVersions
28
  {
vendor/composer/autoload_classmap.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_classmap.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_classmap.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_files.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_files.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_files.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_namespaces.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_namespaces.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_namespaces.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_psr4.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_psr4.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_psr4.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit1b031ef921917ecc49edd013f19e3f78
6
  {
7
  private static $loader;
8
 
@@ -24,52 +24,34 @@ class ComposerAutoloaderInit1b031ef921917ecc49edd013f19e3f78
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit1b031ef921917ecc49edd013f19e3f78', 'loadClassLoader'), true, true);
28
- self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit1b031ef921917ecc49edd013f19e3f78', 'loadClassLoader'));
30
 
31
- $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
- if ($useStaticLoader) {
33
- require __DIR__ . '/autoload_static.php';
34
-
35
- call_user_func(\Composer\Autoload\ComposerStaticInit1b031ef921917ecc49edd013f19e3f78::getInitializer($loader));
36
- } else {
37
- $map = require __DIR__ . '/autoload_namespaces.php';
38
- foreach ($map as $namespace => $path) {
39
- $loader->set($namespace, $path);
40
- }
41
-
42
- $map = require __DIR__ . '/autoload_psr4.php';
43
- foreach ($map as $namespace => $path) {
44
- $loader->setPsr4($namespace, $path);
45
- }
46
-
47
- $classMap = require __DIR__ . '/autoload_classmap.php';
48
- if ($classMap) {
49
- $loader->addClassMap($classMap);
50
- }
51
- }
52
 
53
  $loader->register(true);
54
 
55
- if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit1b031ef921917ecc49edd013f19e3f78::$files;
57
- } else {
58
- $includeFiles = require __DIR__ . '/autoload_files.php';
59
- }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire1b031ef921917ecc49edd013f19e3f78($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire1b031ef921917ecc49edd013f19e3f78($fileIdentifier, $file)
 
 
 
 
 
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
- require $file;
72
-
73
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
 
 
74
  }
75
  }
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit82f432fedca3df294bf4595f0de1d8c9
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit82f432fedca3df294bf4595f0de1d8c9', 'loadClassLoader'), true, true);
28
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit82f432fedca3df294bf4595f0de1d8c9', 'loadClassLoader'));
30
 
31
+ require __DIR__ . '/autoload_static.php';
32
+ call_user_func(\Composer\Autoload\ComposerStaticInit82f432fedca3df294bf4595f0de1d8c9::getInitializer($loader));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  $loader->register(true);
35
 
36
+ $includeFiles = \Composer\Autoload\ComposerStaticInit82f432fedca3df294bf4595f0de1d8c9::$files;
 
 
 
 
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
+ composerRequire82f432fedca3df294bf4595f0de1d8c9($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
42
  }
43
  }
44
 
45
+ /**
46
+ * @param string $fileIdentifier
47
+ * @param string $file
48
+ * @return void
49
+ */
50
+ function composerRequire82f432fedca3df294bf4595f0de1d8c9($fileIdentifier, $file)
51
  {
52
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
 
 
53
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
54
+
55
+ require $file;
56
  }
57
  }
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit1b031ef921917ecc49edd013f19e3f78
8
  {
9
  public static $files = array (
10
  'c65d09b6820da036953a371c8c73a9b1' => __DIR__ . '/..' . '/facebook/graph-sdk/src/Facebook/polyfills.php',
@@ -56,9 +56,9 @@ class ComposerStaticInit1b031ef921917ecc49edd013f19e3f78
56
  public static function getInitializer(ClassLoader $loader)
57
  {
58
  return \Closure::bind(function () use ($loader) {
59
- $loader->prefixLengthsPsr4 = ComposerStaticInit1b031ef921917ecc49edd013f19e3f78::$prefixLengthsPsr4;
60
- $loader->prefixDirsPsr4 = ComposerStaticInit1b031ef921917ecc49edd013f19e3f78::$prefixDirsPsr4;
61
- $loader->classMap = ComposerStaticInit1b031ef921917ecc49edd013f19e3f78::$classMap;
62
 
63
  }, null, ClassLoader::class);
64
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit82f432fedca3df294bf4595f0de1d8c9
8
  {
9
  public static $files = array (
10
  'c65d09b6820da036953a371c8c73a9b1' => __DIR__ . '/..' . '/facebook/graph-sdk/src/Facebook/polyfills.php',
56
  public static function getInitializer(ClassLoader $loader)
57
  {
58
  return \Closure::bind(function () use ($loader) {
59
+ $loader->prefixLengthsPsr4 = ComposerStaticInit82f432fedca3df294bf4595f0de1d8c9::$prefixLengthsPsr4;
60
+ $loader->prefixDirsPsr4 = ComposerStaticInit82f432fedca3df294bf4595f0de1d8c9::$prefixDirsPsr4;
61
+ $loader->classMap = ComposerStaticInit82f432fedca3df294bf4595f0de1d8c9::$classMap;
62
 
63
  }, null, ClassLoader::class);
64
  }
vendor/composer/installed.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php return array(
2
  'root' => array(
3
- 'pretty_version' => 'v9.0.6',
4
- 'version' => '9.0.6.0',
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '91ea5e92475a6ead97d3385ac1d06030a1978bb6',
9
  'name' => 'codeinwp/tweet-old-post',
10
  'dev' => false,
11
  ),
@@ -29,12 +29,12 @@
29
  'dev_requirement' => false,
30
  ),
31
  'codeinwp/tweet-old-post' => array(
32
- 'pretty_version' => 'v9.0.6',
33
- 'version' => '9.0.6.0',
34
  'type' => 'wordpress-plugin',
35
  'install_path' => __DIR__ . '/../../',
36
  'aliases' => array(),
37
- 'reference' => '91ea5e92475a6ead97d3385ac1d06030a1978bb6',
38
  'dev_requirement' => false,
39
  ),
40
  'facebook/graph-sdk' => array(
1
  <?php return array(
2
  'root' => array(
3
+ 'pretty_version' => 'v9.0.7',
4
+ 'version' => '9.0.7.0',
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => 'a17a8073a9c5406a3471b731b932c1805e0ffe20',
9
  'name' => 'codeinwp/tweet-old-post',
10
  'dev' => false,
11
  ),
29
  'dev_requirement' => false,
30
  ),
31
  'codeinwp/tweet-old-post' => array(
32
+ 'pretty_version' => 'v9.0.7',
33
+ 'version' => '9.0.7.0',
34
  'type' => 'wordpress-plugin',
35
  'install_path' => __DIR__ . '/../../',
36
  'aliases' => array(),
37
+ 'reference' => 'a17a8073a9c5406a3471b731b932c1805e0ffe20',
38
  'dev_requirement' => false,
39
  ),
40
  'facebook/graph-sdk' => array(