Version Description
- 2020-12-01
Download this release
Release Info
Developer | codeinwp |
Plugin | Revive Old Posts – Auto Post to Social Media |
Version | 8.6.2 |
Comparing to | |
See all releases |
Code changes from version 8.6.1 to 8.6.2
- CHANGELOG.md +4 -0
- includes/admin/models/class-rop-services-model.php +7 -0
- includes/class-rop.php +1 -1
- readme.md +5 -0
- readme.txt +5 -0
- themeisle-hash.json +1 -1
- tweet-old-post.php +48 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +5 -5
CHANGELOG.md
CHANGED
@@ -1,4 +1,8 @@
|
|
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.
|
1 |
|
2 |
+
### v8.6.2 - 2020-12-01
|
3 |
+
**Changes:**
|
4 |
+
* Fix PRO: Error in the dashboard if the user had a previously connected Buffer account inside ROP and tried to update the plugin. A notice will now be shown with a link to updating steps for those situations.
|
5 |
+
|
6 |
### v8.6.1 - 2020-11-24
|
7 |
**Changes:**
|
8 |
* PRO Fix: Plugin tried to build buffer service that did not exist. Buffer network is no longer supported in Revive Old Posts.
|
includes/admin/models/class-rop-services-model.php
CHANGED
@@ -244,6 +244,7 @@ class Rop_Services_Model extends Rop_Model_Abstract {
|
|
244 |
return false;
|
245 |
}
|
246 |
);
|
|
|
247 |
$services = array_map(
|
248 |
function ( $service ) {
|
249 |
/**
|
@@ -251,6 +252,12 @@ class Rop_Services_Model extends Rop_Model_Abstract {
|
|
251 |
*/
|
252 |
$service['available_accounts'] = array_map(
|
253 |
function ( $account ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
$service = Rop_Services_Factory::build( $account['service'] );
|
255 |
$account = $service->populate_additional_data( $account );
|
256 |
return $this->normalize_account( $account );
|
244 |
return false;
|
245 |
}
|
246 |
);
|
247 |
+
|
248 |
$services = array_map(
|
249 |
function ( $service ) {
|
250 |
/**
|
252 |
*/
|
253 |
$service['available_accounts'] = array_map(
|
254 |
function ( $account ) {
|
255 |
+
// Added in v8.6.2 to prevent fatal errors due to us dropping buffer
|
256 |
+
// TODO: Remove below code in later version of ROP
|
257 |
+
if ( $account['service'] === 'buffer' ) {
|
258 |
+
unset( $account['service'] );
|
259 |
+
return;
|
260 |
+
}
|
261 |
$service = Rop_Services_Factory::build( $account['service'] );
|
262 |
$account = $service->populate_additional_data( $account );
|
263 |
return $this->normalize_account( $account );
|
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.
|
72 |
|
73 |
$this->load_dependencies();
|
74 |
$this->set_locale();
|
68 |
public function __construct() {
|
69 |
|
70 |
$this->plugin_name = 'rop';
|
71 |
+
$this->version = '8.6.2';
|
72 |
|
73 |
$this->load_dependencies();
|
74 |
$this->set_locale();
|
readme.md
CHANGED
@@ -261,6 +261,11 @@ http://revive.social/plugins/revive-old-post
|
|
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.
|
261 |
|
262 |
|
263 |
## Changelog ##
|
264 |
+
### 8.6.2 - 2020-12-01 ###
|
265 |
+
|
266 |
+
* Fix PRO: Error in the dashboard if the user had a previously connected Buffer account inside ROP and tried to update the plugin. A notice will now be shown with a link to updating steps for those situations.
|
267 |
+
|
268 |
+
|
269 |
### 8.6.1 - 2020-11-24 ###
|
270 |
|
271 |
* PRO Fix: Plugin tried to build buffer service that did not exist. Buffer network is no longer supported in Revive Old Posts.
|
readme.txt
CHANGED
@@ -261,6 +261,11 @@ http://revive.social/plugins/revive-old-post
|
|
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.
|
261 |
|
262 |
|
263 |
== Changelog ==
|
264 |
+
= 8.6.2 - 2020-12-01 =
|
265 |
+
|
266 |
+
* Fix PRO: Error in the dashboard if the user had a previously connected Buffer account inside ROP and tried to update the plugin. A notice will now be shown with a link to updating steps for those situations.
|
267 |
+
|
268 |
+
|
269 |
= 8.6.1 - 2020-11-24 =
|
270 |
|
271 |
* PRO Fix: Plugin tried to build buffer service that did not exist. Buffer network is no longer supported in Revive Old Posts.
|
themeisle-hash.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"class-rop-autoloader.php":"7bfbb1554230d0ace777adb2e42bebeb","index.php":"39ab8276fb0e4bd3fcab3270822c5977","tweet-old-post.php":"
|
1 |
+
{"class-rop-autoloader.php":"7bfbb1554230d0ace777adb2e42bebeb","index.php":"39ab8276fb0e4bd3fcab3270822c5977","tweet-old-post.php":"78e23f0125a3090803b2bafb35f757c9","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.
|
20 |
* Author: revive.social
|
21 |
* Author URI: https://revive.social/
|
22 |
* Requires at least: 3.5
|
@@ -55,6 +55,52 @@ if ( defined( 'PHP_VERSION' ) ) {
|
|
55 |
}
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
/**
|
59 |
* Shows a notice for sites running PHP less than 5.6.
|
60 |
*
|
@@ -116,7 +162,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.
|
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.2
|
20 |
* Author: revive.social
|
21 |
* Author URI: https://revive.social/
|
22 |
* Requires at least: 3.5
|
55 |
}
|
56 |
}
|
57 |
|
58 |
+
/**
|
59 |
+
* Shows a notice with a doc link to a fix for sites which have Buffer connected.
|
60 |
+
*
|
61 |
+
* @since 8.6.2
|
62 |
+
*/
|
63 |
+
function rop_buffer_present_notice() {
|
64 |
+
?>
|
65 |
+
|
66 |
+
<div class="notice notice-error is-dismissible">
|
67 |
+
<?php echo sprintf( __( '%1$s %2$sRevive Old Posts:%3$s You have Buffer account(s) connected to Revive Old Posts. You need to remove these accounts to avoid issues with the plugin. Plugin has been deactivated. %4$sClick here to read the article with the fix.%5$s %6$s', 'tweet-old-post' ), '<p>', '<b>', '</b>', '<a href="https://docs.revive.social/article/1318-fix-php-fatal-error-uncaught-exception-invalid-service-name-given" target="_blank">', '</a>', '</p>' ); ?>
|
68 |
+
</div>
|
69 |
+
<?php
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Detects if there's a buffer account connected to ROP.
|
74 |
+
*
|
75 |
+
* Disables ROP if any are found
|
76 |
+
*
|
77 |
+
* @since 8.6.2
|
78 |
+
*/
|
79 |
+
function rop_buffer_present() {
|
80 |
+
|
81 |
+
$rop_data = get_option( 'rop_data' );
|
82 |
+
|
83 |
+
if ( empty( $rop_data['services'] ) ) {
|
84 |
+
return;
|
85 |
+
}
|
86 |
+
|
87 |
+
$services = $rop_data['services'];
|
88 |
+
|
89 |
+
foreach ( $services as $service ) {
|
90 |
+
|
91 |
+
if ( strpos( $service['service'], 'buffer' ) !== false ) {
|
92 |
+
add_action( 'admin_notices', 'rop_buffer_present_notice' );
|
93 |
+
|
94 |
+
if ( ! function_exists( 'deactivate_plugins' ) ) {
|
95 |
+
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
96 |
+
}
|
97 |
+
deactivate_plugins( 'tweet-old-post/tweet-old-post.php' );
|
98 |
+
return;
|
99 |
+
}
|
100 |
+
}
|
101 |
+
}
|
102 |
+
add_action( 'init', 'rop_buffer_present', 1 );
|
103 |
+
|
104 |
/**
|
105 |
* Shows a notice for sites running PHP less than 5.6.
|
106 |
*
|
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', '8.6.2' );
|
166 |
define( 'ROP_LITE_BASE_FILE', __FILE__ );
|
167 |
define( 'ROP_DEBUG', false );
|
168 |
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
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit648538c5635d154b1759c7b825a9295a::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderIniteee08c56ca90fafa27eda2f3de5b3f80
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
@@ -42,14 +42,14 @@ class ComposerAutoloaderIniteee08c56ca90fafa27eda2f3de5b3f80
|
|
42 |
|
43 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
44 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
45 |
-
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
-
function
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit648538c5635d154b1759c7b825a9295a
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit648538c5635d154b1759c7b825a9295a', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit648538c5635d154b1759c7b825a9295a', '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 |
+
composerRequire648538c5635d154b1759c7b825a9295a($fileIdentifier, $file);
|
46 |
}
|
47 |
|
48 |
return $loader;
|
49 |
}
|
50 |
}
|
51 |
|
52 |
+
function composerRequire648538c5635d154b1759c7b825a9295a($fileIdentifier, $file)
|
53 |
{
|
54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
55 |
require $file;
|