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

Version Description

  • 2020-11-24
Download this release

Release Info

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

Code changes from version 8.6.0 to 8.6.1

CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
 
2
  ### v8.6.0 - 2020-11-24
3
  **Changes:**
4
  * New PRO: New social media network- Vkontakte
1
 
2
+ ### v8.6.1 - 2020-11-24
3
+ **Changes:**
4
+ * PRO Fix: Plugin tried to build buffer service that did not exist. Buffer network is no longer supported in Revive Old Posts.
5
+
6
  ### v8.6.0 - 2020-11-24
7
  **Changes:**
8
  * New PRO: New social media network- Vkontakte
includes/admin/class-rop-admin.php CHANGED
@@ -1135,66 +1135,6 @@ class Rop_Admin {
1135
 
1136
  }
1137
 
1138
- /**
1139
- * Dropping buffer notice.
1140
- *
1141
- * @since 8.5.14
1142
- * @access public
1143
- */
1144
- public function rop_dropping_buffer_notice() {
1145
-
1146
- if ( ! current_user_can( 'install_plugins' ) ) {
1147
- return;
1148
- }
1149
-
1150
- $user_id = get_current_user_id();
1151
-
1152
- if ( get_user_meta( $user_id, 'rop-dropping-buffer-notice-dismissed' ) ) {
1153
- return;
1154
- }
1155
-
1156
- $show_notice = false;
1157
-
1158
- $services_model = new Rop_Services_Model();
1159
-
1160
- $services = $services_model->get_authenticated_services();
1161
-
1162
- foreach ( $services as $key => $value ) {
1163
-
1164
- if ( $value['service'] === 'buffer' ) {
1165
- $show_notice = true;
1166
- break;
1167
- }
1168
- }
1169
-
1170
- if ( $show_notice === false ) {
1171
- return;
1172
- }
1173
-
1174
- ?>
1175
- <div class="notice notice-error" style="min-height: 80px">
1176
- <?php echo sprintf( __( '%1$s%2$sRevive Old Posts:%3$s The Buffer integration will cease to work in future versions of ROP. Posting to Facebook Groups will be possible but not Instagram. Please see %4$sthis article for more information.%5$s%6$s%7$s', 'tweet-old-post' ), '<p style="width: 85%">', '<b>', '</b>', '<a href="https://docs.revive.social/article/1297-why-were-removing-buffer" target="_blank">', '</a>', '</p>', '<a style="float: right;" href="?rop-dropping-buffer-notice-dismissed">Dismiss</a>' ); ?>
1177
-
1178
- </div>
1179
- <?php
1180
-
1181
- }
1182
-
1183
- /**
1184
- * Dismiss dropping buffer notice.
1185
- *
1186
- * @since 8.2.3
1187
- * @access public
1188
- */
1189
- public function rop_dismiss_dropping_buffer_notice() {
1190
- $user_id = get_current_user_id();
1191
- if ( isset( $_GET['rop-dropping-buffer-notice-dismissed'] ) ) {
1192
- add_user_meta( $user_id, 'rop-dropping-buffer-notice-dismissed', 'true', true );
1193
- }
1194
-
1195
- }
1196
-
1197
-
1198
  /**
1199
  * If the option "rop_is_sharing_cron_active" value is off/false/no then the WP Cron Jobs will be cleared.
1200
  *
@@ -1409,50 +1349,6 @@ class Rop_Admin {
1409
 
1410
  }
1411
 
1412
- /**
1413
- * Buffer addon disabled notice.
1414
- *
1415
- * @since 8.4.0
1416
- * @access public
1417
- */
1418
- public function rop_buffer_addon_notice() {
1419
-
1420
- if ( is_plugin_active( 'rop-buffer-addon/rop-buffer-addon.php' ) ) {
1421
- deactivate_plugins( 'rop-buffer-addon/rop-buffer-addon.php' );
1422
- } else {
1423
- return;
1424
- }
1425
-
1426
- $user_id = get_current_user_id();
1427
-
1428
- if ( get_user_meta( $user_id, 'rop-buffer-addon-notice-dismissed' ) ) {
1429
- return;
1430
- }
1431
-
1432
- ?>
1433
-
1434
- <div class="notice notice-error">
1435
- <?php echo sprintf( __( '%1$s We\'ve bundled the Buffer feature into Revive Old Posts Pro, and therefore deactivated the Buffer Addon automatically to prevent any conflicts. If you were a free user testing out the addon then please send us a support request %2$shere%3$s. %4$s %5$s', 'tweet-old-post' ), '<p>', '<a href="https://revive.social/support/" target="_blank">', '</a>', '<a style="float: right;" href="?rop-wp-cron-notice-dismissed">Dismiss</a>', '</p>' ); ?>
1436
- </div>
1437
- <?php
1438
-
1439
- }
1440
-
1441
- /**
1442
- * Dismiss WordPress Cron disabled notice.
1443
- *
1444
- * @since 8.4.0
1445
- * @access public
1446
- */
1447
- public function rop_dismiss_buffer_addon_disabled_notice() {
1448
-
1449
- $user_id = get_current_user_id();
1450
- if ( isset( $_GET['rop-buffer-addon-notice-dismissed'] ) ) {
1451
- add_user_meta( $user_id, 'rop-buffer-addon-notice-dismissed', 'true', true );
1452
- }
1453
-
1454
- }
1455
-
1456
  /**
1457
  * Clears the array of account IDs.
1458
  *
1135
 
1136
  }
1137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1138
  /**
1139
  * If the option "rop_is_sharing_cron_active" value is off/false/no then the WP Cron Jobs will be cleared.
1140
  *
1349
 
1350
  }
1351
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1352
  /**
1353
  * Clears the array of account IDs.
1354
  *
includes/admin/models/class-rop-settings-model.php CHANGED
@@ -82,6 +82,7 @@ class Rop_Settings_Model extends Rop_Model_Abstract {
82
  'name' => 'wp_short_url',
83
  'active' => true,
84
  ),
 
85
  // 'rviv.ly' => array(
86
  // 'id' => 'rviv.ly',
87
  // 'name' => 'rviv.ly',
82
  'name' => 'wp_short_url',
83
  'active' => true,
84
  ),
85
+ // TODO Reintroduce Rvivly after refactor
86
  // 'rviv.ly' => array(
87
  // 'id' => 'rviv.ly',
88
  // 'name' => 'rviv.ly',
includes/class-rop-i18n.php CHANGED
@@ -338,7 +338,7 @@ class Rop_I18n {
338
  'multiselect_not_found' => __( 'Nothing found matching', 'tweet-old-post' ),
339
  'next_share' => __( 'Next share', 'tweet-old-post' ),
340
  'sharing_now' => __( 'Sharing...', 'tweet-old-post' ),
341
- 'cron_interval' => __( 'Once every 1 min', 'tweet-old-post' ),
342
  'staging_status' => __( 'This is a staging website, posts will not share to your accounts.', 'tweet-old-post' ),
343
  'api_not_available' => __(
344
  'It seems there is an issue with your WordPress configuration and the core REST API functionality is not available. This is crucial as Revive Old Posts relies on this functionality in order to work.<br/>
338
  'multiselect_not_found' => __( 'Nothing found matching', 'tweet-old-post' ),
339
  'next_share' => __( 'Next share', 'tweet-old-post' ),
340
  'sharing_now' => __( 'Sharing...', 'tweet-old-post' ),
341
+ 'cron_interval' => __( 'Once every 5 min', 'tweet-old-post' ),
342
  'staging_status' => __( 'This is a staging website, posts will not share to your accounts.', 'tweet-old-post' ),
343
  'api_not_available' => __(
344
  'It seems there is an issue with your WordPress configuration and the core REST API functionality is not available. This is crucial as Revive Old Posts relies on this functionality in order to work.<br/>
includes/class-rop.php CHANGED
@@ -68,7 +68,7 @@ class Rop {
68
  public function __construct() {
69
 
70
  $this->plugin_name = 'rop';
71
- $this->version = '8.6.0';
72
 
73
  $this->load_dependencies();
74
  $this->set_locale();
@@ -133,12 +133,6 @@ class Rop {
133
  $this->loader->add_action( 'admin_init', $plugin_admin, 'rop_dismiss_rop_event_not_firing_notice' );
134
  $this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_cron_event_status_notice' );
135
 
136
- $this->loader->add_action( 'admin_init', $plugin_admin, 'rop_dismiss_buffer_addon_disabled_notice' );
137
- $this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_buffer_addon_notice' );
138
-
139
- $this->loader->add_action( 'admin_init', $plugin_admin, 'rop_dismiss_dropping_buffer_notice' );
140
- $this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_dropping_buffer_notice' );
141
-
142
  $this->loader->add_action( 'admin_init', $plugin_admin, 'rop_dismiss_linkedin_api_v2_notice' );
143
  $this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_linkedin_api_v2_notice' );
144
  $this->loader->add_action( 'admin_notices', $plugin_admin, 'bitly_shortener_upgrade_notice' );
@@ -267,8 +261,15 @@ class Rop {
267
 
268
  $factory = new Rop_Services_Factory();
269
  $global_settings = new Rop_Global_Settings();
 
270
  foreach ( $global_settings->get_all_services_handle() as $service ) {
271
 
 
 
 
 
 
 
272
  try {
273
  ${$service . '_service'} = $factory->build( $service );
274
  ${$service . '_service'}->expose_endpoints();
68
  public function __construct() {
69
 
70
  $this->plugin_name = 'rop';
71
+ $this->version = '8.6.1';
72
 
73
  $this->load_dependencies();
74
  $this->set_locale();
133
  $this->loader->add_action( 'admin_init', $plugin_admin, 'rop_dismiss_rop_event_not_firing_notice' );
134
  $this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_cron_event_status_notice' );
135
 
 
 
 
 
 
 
136
  $this->loader->add_action( 'admin_init', $plugin_admin, 'rop_dismiss_linkedin_api_v2_notice' );
137
  $this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_linkedin_api_v2_notice' );
138
  $this->loader->add_action( 'admin_notices', $plugin_admin, 'bitly_shortener_upgrade_notice' );
261
 
262
  $factory = new Rop_Services_Factory();
263
  $global_settings = new Rop_Global_Settings();
264
+
265
  foreach ( $global_settings->get_all_services_handle() as $service ) {
266
 
267
+ // If the service class does not exist, don't try building it.
268
+ $service_class = 'Rop_' . str_replace( '-', '_', ucwords( $service ) ) . '_Service';
269
+ if ( ! class_exists( $service_class ) ) {
270
+ continue;
271
+ }
272
+
273
  try {
274
  ${$service . '_service'} = $factory->build( $service );
275
  ${$service . '_service'}->expose_endpoints();
readme.md CHANGED
@@ -261,6 +261,11 @@ http://revive.social/plugins/revive-old-post
261
 
262
 
263
  ## Changelog ##
 
 
 
 
 
264
  ### 8.6.0 - 2020-11-24 ###
265
 
266
  * New PRO: New social media network- Vkontakte
@@ -268,7 +273,6 @@ http://revive.social/plugins/revive-old-post
268
  * New: Addons menu. RSS feed sharing is coming to ROP. Apply for access to Revive Network RC1. Only select users will be chosen for the testing phase.
269
  * Change PRO: Dropped LinkedIn API dependency in favor of our own LinkedIn API methods
270
  * Info PRO: Added error log for LinkedIn image sharing when exif_imagetype function does not exist on the server.
271
- *
272
 
273
 
274
  ### 8.5.18 - 2020-09-27 ###
261
 
262
 
263
  ## Changelog ##
264
+ ### 8.6.1 - 2020-11-24 ###
265
+
266
+ * PRO Fix: Plugin tried to build buffer service that did not exist. Buffer network is no longer supported in Revive Old Posts.
267
+
268
+
269
  ### 8.6.0 - 2020-11-24 ###
270
 
271
  * New PRO: New social media network- Vkontakte
273
  * New: Addons menu. RSS feed sharing is coming to ROP. Apply for access to Revive Network RC1. Only select users will be chosen for the testing phase.
274
  * Change PRO: Dropped LinkedIn API dependency in favor of our own LinkedIn API methods
275
  * Info PRO: Added error log for LinkedIn image sharing when exif_imagetype function does not exist on the server.
 
276
 
277
 
278
  ### 8.5.18 - 2020-09-27 ###
readme.txt CHANGED
@@ -261,6 +261,11 @@ http://revive.social/plugins/revive-old-post
261
 
262
 
263
  == Changelog ==
 
 
 
 
 
264
  = 8.6.0 - 2020-11-24 =
265
 
266
  * New PRO: New social media network- Vkontakte
@@ -268,7 +273,6 @@ http://revive.social/plugins/revive-old-post
268
  * New: Addons menu. RSS feed sharing is coming to ROP. Apply for access to Revive Network RC1. Only select users will be chosen for the testing phase.
269
  * Change PRO: Dropped LinkedIn API dependency in favor of our own LinkedIn API methods
270
  * Info PRO: Added error log for LinkedIn image sharing when exif_imagetype function does not exist on the server.
271
- *
272
 
273
 
274
  = 8.5.18 - 2020-09-27 =
261
 
262
 
263
  == Changelog ==
264
+ = 8.6.1 - 2020-11-24 =
265
+
266
+ * PRO Fix: Plugin tried to build buffer service that did not exist. Buffer network is no longer supported in Revive Old Posts.
267
+
268
+
269
  = 8.6.0 - 2020-11-24 =
270
 
271
  * New PRO: New social media network- Vkontakte
273
  * New: Addons menu. RSS feed sharing is coming to ROP. Apply for access to Revive Network RC1. Only select users will be chosen for the testing phase.
274
  * Change PRO: Dropped LinkedIn API dependency in favor of our own LinkedIn API methods
275
  * Info PRO: Added error log for LinkedIn image sharing when exif_imagetype function does not exist on the server.
 
276
 
277
 
278
  = 8.5.18 - 2020-09-27 =
themeisle-hash.json CHANGED
@@ -1 +1 @@
1
- {"class-rop-autoloader.php":"7bfbb1554230d0ace777adb2e42bebeb","index.php":"39ab8276fb0e4bd3fcab3270822c5977","tweet-old-post.php":"7d7ebdcf763915b391f096440bbf45de","uninstall.php":"c350fd79cac473d2dcdabc0bc277dd23"}
1
+ {"class-rop-autoloader.php":"7bfbb1554230d0ace777adb2e42bebeb","index.php":"39ab8276fb0e4bd3fcab3270822c5977","tweet-old-post.php":"0ff1300344861faa3144faf80fd3efd9","uninstall.php":"c350fd79cac473d2dcdabc0bc277dd23"}
tweet-old-post.php CHANGED
@@ -16,7 +16,7 @@
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: 8.6.0
20
  * Author: revive.social
21
  * Author URI: https://revive.social/
22
  * Requires at least: 3.5
@@ -116,7 +116,7 @@ function run_rop() {
116
  define( 'ROP_CRON_ALTERNATIVE', $use_remote_cron );
117
 
118
  define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
119
- define( 'ROP_LITE_VERSION', '8.6.0' );
120
  define( 'ROP_LITE_BASE_FILE', __FILE__ );
121
  define( 'ROP_DEBUG', false );
122
  define( 'ROP_LITE_PATH', plugin_dir_path( __FILE__ ) );
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: 8.6.1
20
  * Author: revive.social
21
  * Author URI: https://revive.social/
22
  * Requires at least: 3.5
116
  define( 'ROP_CRON_ALTERNATIVE', $use_remote_cron );
117
 
118
  define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
119
+ define( 'ROP_LITE_VERSION', '8.6.1' );
120
  define( 'ROP_LITE_BASE_FILE', __FILE__ );
121
  define( 'ROP_DEBUG', false );
122
  define( 'ROP_LITE_PATH', plugin_dir_path( __FILE__ ) );
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitd0de7b25a0913b60185957c127b13c9c::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderIniteee08c56ca90fafa27eda2f3de5b3f80::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitd0de7b25a0913b60185957c127b13c9c
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitd0de7b25a0913b60185957c127b13c9c
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitd0de7b25a0913b60185957c127b13c9c', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitd0de7b25a0913b60185957c127b13c9c', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -42,14 +42,14 @@ class ComposerAutoloaderInitd0de7b25a0913b60185957c127b13c9c
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
- composerRequired0de7b25a0913b60185957c127b13c9c($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
- function composerRequired0de7b25a0913b60185957c127b13c9c($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderIniteee08c56ca90fafa27eda2f3de5b3f80
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderIniteee08c56ca90fafa27eda2f3de5b3f80', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderIniteee08c56ca90fafa27eda2f3de5b3f80', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
+ composerRequireeee08c56ca90fafa27eda2f3de5b3f80($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
+ function composerRequireeee08c56ca90fafa27eda2f3de5b3f80($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;