Version Description
- 2020-07-23
Download this release
Release Info
| Developer | codeinwp |
| Plugin | |
| Version | 8.5.11 |
| Comparing to | |
| See all releases | |
Code changes from version 8.5.10 to 8.5.11
- CHANGELOG.md +5 -0
- includes/admin/class-rop-admin.php +1 -0
- includes/admin/helpers/class-rop-post-format-helper.php +1 -1
- includes/admin/services/class-rop-facebook-service.php +13 -13
- includes/admin/services/class-rop-gmb-service.php +1 -1
- includes/class-rop.php +1 -1
- readme.md +6 -0
- readme.txt +6 -0
- themeisle-hash.json +1 -1
- tweet-old-post.php +2 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +5 -5
CHANGELOG.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
### v8.5.10 - 2020-07-21
|
| 3 |
**Changes:**
|
| 4 |
* New PRO: You can now share your website posts to your Google My Business location(s).
|
| 1 |
|
| 2 |
+
### v8.5.11 - 2020-07-23
|
| 3 |
+
**Changes:**
|
| 4 |
+
* Fix: Posts always sharing as image posts even with option unchecked.
|
| 5 |
+
* Info: Added "rop_instant_share_message" filter for manipulating custom instant share messages.
|
| 6 |
+
|
| 7 |
### v8.5.10 - 2020-07-21
|
| 8 |
**Changes:**
|
| 9 |
* New PRO: You can now share your website posts to your Google My Business location(s).
|
includes/admin/class-rop-admin.php
CHANGED
|
@@ -915,6 +915,7 @@ class Rop_Admin {
|
|
| 915 |
foreach ( $events as $index => $event ) {
|
| 916 |
$post = $event['post'];
|
| 917 |
$message = ! empty( $event['custom_instant_share_message'] ) ? $event['custom_instant_share_message'] : '';
|
|
|
|
| 918 |
$account_data = $services_model->find_account( $account );
|
| 919 |
try {
|
| 920 |
$service = $service_factory->build( $account_data['service'] );
|
| 915 |
foreach ( $events as $index => $event ) {
|
| 916 |
$post = $event['post'];
|
| 917 |
$message = ! empty( $event['custom_instant_share_message'] ) ? $event['custom_instant_share_message'] : '';
|
| 918 |
+
$message = apply_filters( 'rop_instant_share_message', $message, $event );
|
| 919 |
$account_data = $services_model->find_account( $account );
|
| 920 |
try {
|
| 921 |
$service = $service_factory->build( $account_data['service'] );
|
includes/admin/helpers/class-rop-post-format-helper.php
CHANGED
|
@@ -882,7 +882,7 @@ class Rop_Post_Format_Helper {
|
|
| 882 |
} elseif ( has_post_thumbnail( $post_id ) && ! empty( $post_with_image ) ) {
|
| 883 |
$image = get_the_post_thumbnail_url( $post_id, 'large' );
|
| 884 |
} else {
|
| 885 |
-
$image =
|
| 886 |
}
|
| 887 |
}
|
| 888 |
|
| 882 |
} elseif ( has_post_thumbnail( $post_id ) && ! empty( $post_with_image ) ) {
|
| 883 |
$image = get_the_post_thumbnail_url( $post_id, 'large' );
|
| 884 |
} else {
|
| 885 |
+
$image = '';
|
| 886 |
}
|
| 887 |
}
|
| 888 |
|
includes/admin/services/class-rop-facebook-service.php
CHANGED
|
@@ -555,6 +555,19 @@ class Rop_Facebook_Service extends Rop_Services_Abstract {
|
|
| 555 |
}
|
| 556 |
}
|
| 557 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 558 |
// If is regular post, but post with image option checked, post as Image on FB
|
| 559 |
if ( get_post_type( $post_id ) !== 'attachment' && ! empty( $post_details['post_image'] ) ) {
|
| 560 |
// The source and url, one of these parameters will become unset later on, as only 1 is used for posting.
|
|
@@ -570,19 +583,6 @@ class Rop_Facebook_Service extends Rop_Services_Abstract {
|
|
| 570 |
}
|
| 571 |
}
|
| 572 |
|
| 573 |
-
// if regular post, but "Include link" is selected in Post Format settings, post as normal article post
|
| 574 |
-
if ( get_post_type( $post_id ) !== 'attachment' && ! empty( $post_details['post_url'] ) ) {
|
| 575 |
-
|
| 576 |
-
$new_post['message'] = $this->strip_excess_blank_lines( $post_details['content'] ) . $post_details['hashtags'];
|
| 577 |
-
|
| 578 |
-
$new_post['link'] = $this->get_url( $post_details );
|
| 579 |
-
|
| 580 |
-
return array(
|
| 581 |
-
'post_data' => $new_post,
|
| 582 |
-
'type' => 'post',
|
| 583 |
-
);
|
| 584 |
-
}
|
| 585 |
-
|
| 586 |
// if we don't have "Post with image", nor "Include link" checked in Post Format settings, post as text post.
|
| 587 |
if ( get_post_type( $post_id ) !== 'attachment' && empty( $post_details['post_image'] ) && empty( $post_details['post_url'] ) ) {
|
| 588 |
|
| 555 |
}
|
| 556 |
}
|
| 557 |
|
| 558 |
+
// if regular post, but "Include link" is selected in Post Format settings, post as normal article post
|
| 559 |
+
if ( get_post_type( $post_id ) !== 'attachment' && ! empty( $post_details['post_url'] ) && empty( $post_details['post_with_image'] ) ) {
|
| 560 |
+
|
| 561 |
+
$new_post['message'] = $this->strip_excess_blank_lines( $post_details['content'] ) . $post_details['hashtags'];
|
| 562 |
+
|
| 563 |
+
$new_post['link'] = $this->get_url( $post_details );
|
| 564 |
+
|
| 565 |
+
return array(
|
| 566 |
+
'post_data' => $new_post,
|
| 567 |
+
'type' => 'post',
|
| 568 |
+
);
|
| 569 |
+
}
|
| 570 |
+
|
| 571 |
// If is regular post, but post with image option checked, post as Image on FB
|
| 572 |
if ( get_post_type( $post_id ) !== 'attachment' && ! empty( $post_details['post_image'] ) ) {
|
| 573 |
// The source and url, one of these parameters will become unset later on, as only 1 is used for posting.
|
| 583 |
}
|
| 584 |
}
|
| 585 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 586 |
// if we don't have "Post with image", nor "Include link" checked in Post Format settings, post as text post.
|
| 587 |
if ( get_post_type( $post_id ) !== 'attachment' && empty( $post_details['post_image'] ) && empty( $post_details['post_url'] ) ) {
|
| 588 |
|
includes/admin/services/class-rop-gmb-service.php
CHANGED
|
@@ -368,7 +368,7 @@ class Rop_Gmb_Service extends Rop_Services_Abstract {
|
|
| 368 |
*/
|
| 369 |
private function gmb_article_post( $post_details, $args, $new_post ) {
|
| 370 |
|
| 371 |
-
$image_url = $post_details['
|
| 372 |
|
| 373 |
// if image is empty lets create a different type of GMB post
|
| 374 |
if ( empty( $image_url ) ) {
|
| 368 |
*/
|
| 369 |
private function gmb_article_post( $post_details, $args, $new_post ) {
|
| 370 |
|
| 371 |
+
$image_url = get_the_post_thumbnail_url( $post_details['post_id'], 'large' );
|
| 372 |
|
| 373 |
// if image is empty lets create a different type of GMB post
|
| 374 |
if ( empty( $image_url ) ) {
|
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.5.
|
| 72 |
|
| 73 |
$this->load_dependencies();
|
| 74 |
$this->set_locale();
|
| 68 |
public function __construct() {
|
| 69 |
|
| 70 |
$this->plugin_name = 'rop';
|
| 71 |
+
$this->version = '8.5.11';
|
| 72 |
|
| 73 |
$this->load_dependencies();
|
| 74 |
$this->set_locale();
|
readme.md
CHANGED
|
@@ -264,6 +264,12 @@ http://revive.social/plugins/revive-old-post
|
|
| 264 |
|
| 265 |
|
| 266 |
## Changelog ##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
### 8.5.10 - 2020-07-21 ###
|
| 268 |
|
| 269 |
* New PRO: You can now share your website posts to your Google My Business location(s).
|
| 264 |
|
| 265 |
|
| 266 |
## Changelog ##
|
| 267 |
+
### 8.5.11 - 2020-07-23 ###
|
| 268 |
+
|
| 269 |
+
* Fix: Posts always sharing as image posts even with option unchecked.
|
| 270 |
+
* Info: Added "rop_instant_share_message" filter for manipulating custom instant share messages.
|
| 271 |
+
|
| 272 |
+
|
| 273 |
### 8.5.10 - 2020-07-21 ###
|
| 274 |
|
| 275 |
* New PRO: You can now share your website posts to your Google My Business location(s).
|
readme.txt
CHANGED
|
@@ -264,6 +264,12 @@ http://revive.social/plugins/revive-old-post
|
|
| 264 |
|
| 265 |
|
| 266 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
= 8.5.10 - 2020-07-21 =
|
| 268 |
|
| 269 |
* New PRO: You can now share your website posts to your Google My Business location(s).
|
| 264 |
|
| 265 |
|
| 266 |
== Changelog ==
|
| 267 |
+
= 8.5.11 - 2020-07-23 =
|
| 268 |
+
|
| 269 |
+
* Fix: Posts always sharing as image posts even with option unchecked.
|
| 270 |
+
* Info: Added "rop_instant_share_message" filter for manipulating custom instant share messages.
|
| 271 |
+
|
| 272 |
+
|
| 273 |
= 8.5.10 - 2020-07-21 =
|
| 274 |
|
| 275 |
* New PRO: You can now share your website posts to your Google My Business location(s).
|
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":"515a760c827fa0058a85ccb196b099c9","uninstall.php":"456c213b41eb281b168497b4cc808b35"}
|
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.5.
|
| 20 |
* Author: revive.social
|
| 21 |
* Author URI: https://revive.social/
|
| 22 |
* Requires at least: 3.5
|
|
@@ -98,7 +98,7 @@ function run_rop() {
|
|
| 98 |
}
|
| 99 |
|
| 100 |
define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
|
| 101 |
-
define( 'ROP_LITE_VERSION', '8.5.
|
| 102 |
define( 'ROP_LITE_BASE_FILE', __FILE__ );
|
| 103 |
define( 'ROP_DEBUG', false );
|
| 104 |
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.5.11
|
| 20 |
* Author: revive.social
|
| 21 |
* Author URI: https://revive.social/
|
| 22 |
* Requires at least: 3.5
|
| 98 |
}
|
| 99 |
|
| 100 |
define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
|
| 101 |
+
define( 'ROP_LITE_VERSION', '8.5.11' );
|
| 102 |
define( 'ROP_LITE_BASE_FILE', __FILE__ );
|
| 103 |
define( 'ROP_DEBUG', false );
|
| 104 |
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 ComposerAutoloaderInitabf6d2d88400bd1f6e7c2de306e36587::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 ComposerAutoloaderInit986be60c101f774b260cbbae2dd7a0c8
|
|
| 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 ComposerAutoloaderInit986be60c101f774b260cbbae2dd7a0c8
|
|
| 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 ComposerAutoloaderInitabf6d2d88400bd1f6e7c2de306e36587
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInitabf6d2d88400bd1f6e7c2de306e36587', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitabf6d2d88400bd1f6e7c2de306e36587', '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 |
+
composerRequireabf6d2d88400bd1f6e7c2de306e36587($fileIdentifier, $file);
|
| 46 |
}
|
| 47 |
|
| 48 |
return $loader;
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
| 52 |
+
function composerRequireabf6d2d88400bd1f6e7c2de306e36587($fileIdentifier, $file)
|
| 53 |
{
|
| 54 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 55 |
require $file;
|
