Version Description
Download this release
Release Info
Developer | rsocial |
Plugin | Revive Old Posts – Auto Post to Social Media |
Version | 9.0.5 |
Comparing to | |
See all releases |
Code changes from version 9.0.4 to 9.0.5
- CHANGELOG.md +5 -0
- includes/admin/class-rop-admin.php +50 -5
- includes/admin/class-rop-logger.php +5 -0
- includes/admin/class-rop-rest-api.php +1 -1
- includes/class-rop.php +3 -2
- readme.txt +8 -0
- tweet-old-post.php +2 -2
- uninstall.php +1 -0
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +6 -6
CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 9.0.4](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.3...v9.0.4) (2021-08-17)
|
2 |
|
3 |
### Fixes
|
1 |
+
##### [Version 9.0.5](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.4...v9.0.5) (2021-08-17)
|
2 |
+
|
3 |
+
### Changes
|
4 |
+
- Add notice about Remote Cron feature removal
|
5 |
+
|
6 |
##### [Version 9.0.4](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.3...v9.0.4) (2021-08-17)
|
7 |
|
8 |
### Fixes
|
includes/admin/class-rop-admin.php
CHANGED
@@ -1646,7 +1646,7 @@ class Rop_Admin {
|
|
1646 |
* @since 9.0.4
|
1647 |
* @access public
|
1648 |
*/
|
1649 |
-
public function
|
1650 |
|
1651 |
$installed_at_version = get_option( 'rop_first_install_version' );
|
1652 |
|
@@ -1654,11 +1654,56 @@ class Rop_Admin {
|
|
1654 |
return false;
|
1655 |
}
|
1656 |
|
1657 |
-
if ( version_compare( $installed_at_version, '9.0.3', '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1658 |
delete_option( 'rop_use_remote_cron' );
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1662 |
}
|
1663 |
|
1664 |
}
|
1646 |
* @since 9.0.4
|
1647 |
* @access public
|
1648 |
*/
|
1649 |
+
public function rop_remove_remote_cron_notice() {
|
1650 |
|
1651 |
$installed_at_version = get_option( 'rop_first_install_version' );
|
1652 |
|
1654 |
return false;
|
1655 |
}
|
1656 |
|
1657 |
+
if ( version_compare( $installed_at_version, '9.0.3', '>' ) ) {
|
1658 |
+
return;
|
1659 |
+
}
|
1660 |
+
|
1661 |
+
$user_id = get_current_user_id();
|
1662 |
+
|
1663 |
+
if ( get_user_meta( $user_id, 'rop-remove-remote-cron-notice-dismissed' ) ) {
|
1664 |
+
return;
|
1665 |
+
}
|
1666 |
+
|
1667 |
+
$using_remote_cron = (bool) get_option('rop_use_remote_cron');
|
1668 |
+
|
1669 |
+
if( $using_remote_cron ){
|
1670 |
delete_option( 'rop_use_remote_cron' );
|
1671 |
+
}
|
1672 |
+
|
1673 |
+
$dismiss_link = add_query_arg( array(
|
1674 |
+
'rop-remove-remote-cron-notice-dismissed' => '1',
|
1675 |
+
));
|
1676 |
+
|
1677 |
+
$rop = __('Revive Old Posts: ', 'tweet-old-post');
|
1678 |
+
$admin_url = admin_url('admin.php?page=TweetOldPost');
|
1679 |
+
$notice_text = sprintf( __('We\'ve removed the Remote Cron service feature of Revive Old Posts. If you used this option in the past, then please %1$shead to the Revive Old Posts dashboard%2$s to start sharing using the default WordPress cron. If post sharing is not working for you, then please see %3$shere for solutions.%2$s', 'tweet-old-post'), "<a href='$admin_url'>", "</a>", "<a href='https://docs.revive.social/article/686-fix-revive-old-post-not-posting' target='blank'>" );
|
1680 |
+
|
1681 |
+
$message = <<<MSG
|
1682 |
+
<p style="font-size: 14px">
|
1683 |
+
<b>$rop</b> $notice_text
|
1684 |
+
<a style='float: right;' href='$dismiss_link'>Dismiss</a>
|
1685 |
+
</p>
|
1686 |
+
MSG;
|
1687 |
+
|
1688 |
+
?>
|
1689 |
+
|
1690 |
+
<div class="notice notice-error">
|
1691 |
+
<?php echo $message ?>
|
1692 |
+
</div>
|
1693 |
+
<?php
|
1694 |
+
|
1695 |
+
}
|
1696 |
+
|
1697 |
+
/**
|
1698 |
+
* Dismiss Remote cron removal notice.
|
1699 |
+
*
|
1700 |
+
* @since 9.0.5
|
1701 |
+
* @access public
|
1702 |
+
*/
|
1703 |
+
public function rop_dismiss_remove_remote_cron() {
|
1704 |
+
$user_id = get_current_user_id();
|
1705 |
+
if ( isset( $_GET['rop-remove-remote-cron-notice-dismissed'] ) ) {
|
1706 |
+
add_user_meta( $user_id, 'rop-remove-remote-cron-notice-dismissed', 'true', true );
|
1707 |
}
|
1708 |
|
1709 |
}
|
includes/admin/class-rop-logger.php
CHANGED
@@ -158,6 +158,11 @@ class Rop_Logger {
|
|
158 |
* @return mixed
|
159 |
*/
|
160 |
public function translate_messages( $direct_message ) {
|
|
|
|
|
|
|
|
|
|
|
161 |
$direct_message = trim( $direct_message );
|
162 |
$direct_message = preg_replace( '/\s\s+/', ' ', $direct_message ); // we need to remove extra spaces
|
163 |
|
158 |
* @return mixed
|
159 |
*/
|
160 |
public function translate_messages( $direct_message ) {
|
161 |
+
|
162 |
+
if( ! is_string( $direct_message ) ){
|
163 |
+
return;
|
164 |
+
}
|
165 |
+
|
166 |
$direct_message = trim( $direct_message );
|
167 |
$direct_message = preg_replace( '/\s\s+/', ' ', $direct_message ); // we need to remove extra spaces
|
168 |
|
includes/admin/class-rop-rest-api.php
CHANGED
@@ -25,7 +25,7 @@ class Rop_Rest_Api {
|
|
25 |
*
|
26 |
* @since 8.0.0
|
27 |
* @access private
|
28 |
-
* @var
|
29 |
*/
|
30 |
private $response;
|
31 |
|
25 |
*
|
26 |
* @since 8.0.0
|
27 |
* @access private
|
28 |
+
* @var object $response The default response.
|
29 |
*/
|
30 |
private $response;
|
31 |
|
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.
|
72 |
|
73 |
$this->load_dependencies();
|
74 |
$this->set_locale();
|
@@ -137,7 +137,8 @@ class Rop {
|
|
137 |
$this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_cron_event_status_notice' );
|
138 |
$this->loader->add_action( 'admin_notices', $plugin_admin_notices, 'rop_revive_network_nag_delayed' );
|
139 |
|
140 |
-
$this->loader->add_action( '
|
|
|
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' );
|
68 |
public function __construct() {
|
69 |
|
70 |
$this->plugin_name = 'rop';
|
71 |
+
$this->version = '9.0.5';
|
72 |
|
73 |
$this->load_dependencies();
|
74 |
$this->set_locale();
|
137 |
$this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_cron_event_status_notice' );
|
138 |
$this->loader->add_action( 'admin_notices', $plugin_admin_notices, 'rop_revive_network_nag_delayed' );
|
139 |
|
140 |
+
$this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_remove_remote_cron_notice' );
|
141 |
+
$this->loader->add_action( 'admin_init', $plugin_admin, 'rop_dismiss_remove_remote_cron' );
|
142 |
|
143 |
$this->loader->add_action( 'admin_init', $plugin_admin, 'rop_dismiss_linkedin_api_v2_notice' );
|
144 |
$this->loader->add_action( 'admin_notices', $plugin_admin, 'rop_linkedin_api_v2_notice' );
|
readme.txt
CHANGED
@@ -299,6 +299,14 @@ http://revive.social/plugins/revive-old-post
|
|
299 |
|
300 |
== Changelog ==
|
301 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
##### [Version 9.0.4](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.3...v9.0.4) (2021-08-17)
|
303 |
|
304 |
### Fixes
|
299 |
|
300 |
== Changelog ==
|
301 |
|
302 |
+
##### [Version 9.0.5](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.4...v9.0.5) (2021-08-17)
|
303 |
+
|
304 |
+
### Changes
|
305 |
+
- Add notice about Remote Cron feature removal
|
306 |
+
|
307 |
+
|
308 |
+
|
309 |
+
|
310 |
##### [Version 9.0.4](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.3...v9.0.4) (2021-08-17)
|
311 |
|
312 |
### Fixes
|
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: 9.0.
|
20 |
* Author: revive.social
|
21 |
* Author URI: https://revive.social/
|
22 |
* Requires at least: 3.5
|
@@ -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.
|
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.5
|
20 |
* Author: revive.social
|
21 |
* Author URI: https://revive.social/
|
22 |
* Requires at least: 3.5
|
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.5' );
|
166 |
define( 'ROP_LITE_BASE_FILE', __FILE__ );
|
167 |
$debug = false;
|
168 |
if ( function_exists( 'wp_get_environment_type' ) ) {
|
uninstall.php
CHANGED
@@ -162,6 +162,7 @@ if ( ! empty( $housekeeping ) ) {
|
|
162 |
delete_metadata( 'user', 0, 'rop-cron-event-status-notice-dismissed', '', true );
|
163 |
delete_metadata( 'user', 0, 'rop-shortener-changed-notice-dismissed', '', true );
|
164 |
delete_metadata( 'user', 0, 'rop-dropping-buffer-notice-dismissed', '', true );
|
|
|
165 |
|
166 |
global $wpdb;
|
167 |
$post_meta = $wpdb->prefix . 'postmeta';
|
162 |
delete_metadata( 'user', 0, 'rop-cron-event-status-notice-dismissed', '', true );
|
163 |
delete_metadata( 'user', 0, 'rop-shortener-changed-notice-dismissed', '', true );
|
164 |
delete_metadata( 'user', 0, 'rop-dropping-buffer-notice-dismissed', '', true );
|
165 |
+
delete_metadata( 'user', 0, 'rop-remove-remote-cron-notice-dismissed', '', true );
|
166 |
|
167 |
global $wpdb;
|
168 |
$post_meta = $wpdb->prefix . 'postmeta';
|
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 ComposerAutoloaderInit2d3e781a9a092b095a46f3d63c6979eb::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 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitf9bc183ebcd9c34f32f5f49a5f2f588a
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
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\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitf9bc183ebcd9c34f32f5f49a5f2f588a
|
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
-
$includeFiles = Composer\Autoload\
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
-
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
-
function
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit2d3e781a9a092b095a46f3d63c6979eb
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit2d3e781a9a092b095a46f3d63c6979eb', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit2d3e781a9a092b095a46f3d63c6979eb', '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\ComposerStaticInit2d3e781a9a092b095a46f3d63c6979eb::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit2d3e781a9a092b095a46f3d63c6979eb::$files;
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
+
composerRequire2d3e781a9a092b095a46f3d63c6979eb($fileIdentifier, $file);
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
+
function composerRequire2d3e781a9a092b095a46f3d63c6979eb($fileIdentifier, $file)
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'c65d09b6820da036953a371c8c73a9b1' => __DIR__ . '/..' . '/facebook/graph-sdk/src/Facebook/polyfills.php',
|
@@ -56,9 +56,9 @@ class ComposerStaticInitf9bc183ebcd9c34f32f5f49a5f2f588a
|
|
56 |
public static function getInitializer(ClassLoader $loader)
|
57 |
{
|
58 |
return \Closure::bind(function () use ($loader) {
|
59 |
-
$loader->prefixLengthsPsr4 =
|
60 |
-
$loader->prefixDirsPsr4 =
|
61 |
-
$loader->classMap =
|
62 |
|
63 |
}, null, ClassLoader::class);
|
64 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit2d3e781a9a092b095a46f3d63c6979eb
|
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 = ComposerStaticInit2d3e781a9a092b095a46f3d63c6979eb::$prefixLengthsPsr4;
|
60 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit2d3e781a9a092b095a46f3d63c6979eb::$prefixDirsPsr4;
|
61 |
+
$loader->classMap = ComposerStaticInit2d3e781a9a092b095a46f3d63c6979eb::$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.
|
4 |
-
'version' => '9.0.
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
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.
|
33 |
-
'version' => '9.0.
|
34 |
'type' => 'wordpress-plugin',
|
35 |
'install_path' => __DIR__ . '/../../',
|
36 |
'aliases' => array(),
|
37 |
-
'reference' => '
|
38 |
'dev_requirement' => false,
|
39 |
),
|
40 |
'facebook/graph-sdk' => array(
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
+
'pretty_version' => 'v9.0.5',
|
4 |
+
'version' => '9.0.5.0',
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => 'f4f3fded51144d62756774603342ef32a769d865',
|
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.5',
|
33 |
+
'version' => '9.0.5.0',
|
34 |
'type' => 'wordpress-plugin',
|
35 |
'install_path' => __DIR__ . '/../../',
|
36 |
'aliases' => array(),
|
37 |
+
'reference' => 'f4f3fded51144d62756774603342ef32a769d865',
|
38 |
'dev_requirement' => false,
|
39 |
),
|
40 |
'facebook/graph-sdk' => array(
|