Version Description
Download this release
Release Info
| Developer | codeinwp |
| Plugin | |
| Version | 7.3.6 |
| Comparing to | |
| See all releases | |
Code changes from version 7.3.5 to 7.3.6
- inc/core.php +10 -4
- inc/view-advancedscheduling.php +3 -9
- inc/view.php +1 -1
- readme.txt +7 -0
- tweet-old-post.php +2 -2
inc/core.php
CHANGED
|
@@ -548,7 +548,7 @@ if (!class_exists('CWP_TOP_Core')) {
|
|
| 548 |
foreach($networks as $n) {
|
| 549 |
$image = $this->getImageForPost($n, $returnedTweets[0]->ID);
|
| 550 |
if(!empty($image)){
|
| 551 |
-
$messages[$n] =
|
| 552 |
}
|
| 553 |
}
|
| 554 |
|
|
@@ -888,13 +888,12 @@ if (!class_exists('CWP_TOP_Core')) {
|
|
| 888 |
$finalTweetSize = $finalTweetSize - 25;
|
| 889 |
}
|
| 890 |
$tweetContent = $this->ropSubstr( $tweetContent,0,$finalTweetSize);
|
|
|
|
| 891 |
if($network == 'twitter'){
|
| 892 |
if(!empty($fTweet['link'])) $fTweet['link'] = " ".$fTweet['link']." ";
|
| 893 |
-
|
| 894 |
$finalTweet = $additionalTextBeginning . $tweetContent .$fTweet['link'].$newHashtags . $additionalTextEnd;
|
| 895 |
$fTweet['link'] = '';
|
| 896 |
$finalTweet = preg_replace('/\s+/', ' ', trim( $finalTweet));
|
| 897 |
-
|
| 898 |
}else{
|
| 899 |
if($network === 'tumblr') {
|
| 900 |
$fTweet['tags'] = implode(",",array_filter(explode("#", $newHashtags)));
|
|
@@ -1017,7 +1016,14 @@ if (!class_exists('CWP_TOP_Core')) {
|
|
| 1017 |
|
| 1018 |
self::addNotice(sprintf(__("Post %s has been successfully sent to facebook",'tweet-old-post'), $post->post_title),'notice');
|
| 1019 |
}else{
|
| 1020 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1021 |
|
| 1022 |
}
|
| 1023 |
|
| 548 |
foreach($networks as $n) {
|
| 549 |
$image = $this->getImageForPost($n, $returnedTweets[0]->ID);
|
| 550 |
if(!empty($image)){
|
| 551 |
+
$messages[$n] = $image.$messages[$n];
|
| 552 |
}
|
| 553 |
}
|
| 554 |
|
| 888 |
$finalTweetSize = $finalTweetSize - 25;
|
| 889 |
}
|
| 890 |
$tweetContent = $this->ropSubstr( $tweetContent,0,$finalTweetSize);
|
| 891 |
+
|
| 892 |
if($network == 'twitter'){
|
| 893 |
if(!empty($fTweet['link'])) $fTweet['link'] = " ".$fTweet['link']." ";
|
|
|
|
| 894 |
$finalTweet = $additionalTextBeginning . $tweetContent .$fTweet['link'].$newHashtags . $additionalTextEnd;
|
| 895 |
$fTweet['link'] = '';
|
| 896 |
$finalTweet = preg_replace('/\s+/', ' ', trim( $finalTweet));
|
|
|
|
| 897 |
}else{
|
| 898 |
if($network === 'tumblr') {
|
| 899 |
$fTweet['tags'] = implode(",",array_filter(explode("#", $newHashtags)));
|
| 1016 |
|
| 1017 |
self::addNotice(sprintf(__("Post %s has been successfully sent to facebook",'tweet-old-post'), $post->post_title),'notice');
|
| 1018 |
}else{
|
| 1019 |
+
$fb_error = "";
|
| 1020 |
+
$pp = json_decode($pp["body"]);
|
| 1021 |
+
|
| 1022 |
+
if(isset($pp->error)){
|
| 1023 |
+
$fb_error = $pp->error->message;
|
| 1024 |
+
}
|
| 1025 |
+
self::addNotice(__("Error for facebook share on post ",'tweet-old-post'). $post->post_title." ".$fb_error." @".$user['oauth_user_details']->name,'error');
|
| 1026 |
+
|
| 1027 |
|
| 1028 |
}
|
| 1029 |
|
inc/view-advancedscheduling.php
CHANGED
|
@@ -7,13 +7,11 @@
|
|
| 7 |
if( count( $available ) > 1) : ?>
|
| 8 |
<ul class="cwp_top_tabs_btns">
|
| 9 |
<?php
|
| 10 |
-
$first = true;
|
| 11 |
foreach($available as $network_name) : ?>
|
| 12 |
-
<li class="<?php if($
|
| 13 |
-
<?php $first = false; ?>
|
| 14 |
<?php endforeach; ?>
|
| 15 |
<?php if(count($available) > 1): ?>
|
| 16 |
-
<li><?php _e("All", "tweet-old-post"); ?></li>
|
| 17 |
<?php endif; ?>
|
| 18 |
</ul>
|
| 19 |
<?php endif; ?>
|
|
@@ -50,7 +48,6 @@
|
|
| 50 |
<?php
|
| 51 |
$networks = array();
|
| 52 |
$collect = array();
|
| 53 |
-
$first = true;
|
| 54 |
foreach($available as $network_name) {
|
| 55 |
$networks[] = $network_name;
|
| 56 |
}
|
|
@@ -76,7 +73,7 @@
|
|
| 76 |
}
|
| 77 |
?>
|
| 78 |
|
| 79 |
-
<div class="tab-vertical <?php if($
|
| 80 |
<?php if(!apply_filters('rop_is_business_user', false)): ?>
|
| 81 |
<div class="rop-features-available"><p><span>Editing features are available on the <a href="<?php echo ROP_PRO_URL; ?>" target="_blank"><strong>Business version</strong></a></span></p></div>
|
| 82 |
<?php endif; ?>
|
|
@@ -86,7 +83,6 @@
|
|
| 86 |
_e("Please start the plugin to view the future shares", "tweet-old-post");
|
| 87 |
echo '</div>';
|
| 88 |
echo "</div>";
|
| 89 |
-
$first = false;
|
| 90 |
continue;
|
| 91 |
}
|
| 92 |
if(count($all) == 0){
|
|
@@ -94,7 +90,6 @@
|
|
| 94 |
_e('There is no suitable post to tweet make sure you excluded correct categories and selected the right dates.','tweet-old-post');
|
| 95 |
echo '</div>';
|
| 96 |
echo "</div>";
|
| 97 |
-
$first = false;
|
| 98 |
continue;
|
| 99 |
}
|
| 100 |
|
|
@@ -165,7 +160,6 @@
|
|
| 165 |
</div>
|
| 166 |
</div>
|
| 167 |
<?php
|
| 168 |
-
$first = false;
|
| 169 |
}
|
| 170 |
?>
|
| 171 |
|
| 7 |
if( count( $available ) > 1) : ?>
|
| 8 |
<ul class="cwp_top_tabs_btns">
|
| 9 |
<?php
|
|
|
|
| 10 |
foreach($available as $network_name) : ?>
|
| 11 |
+
<li class="<?php if(count($available) == 1){ ?>active<?php } ?>"><?php echo $network_name; ?></li>
|
|
|
|
| 12 |
<?php endforeach; ?>
|
| 13 |
<?php if(count($available) > 1): ?>
|
| 14 |
+
<li class="active"><?php _e("All", "tweet-old-post"); ?></li>
|
| 15 |
<?php endif; ?>
|
| 16 |
</ul>
|
| 17 |
<?php endif; ?>
|
| 48 |
<?php
|
| 49 |
$networks = array();
|
| 50 |
$collect = array();
|
|
|
|
| 51 |
foreach($available as $network_name) {
|
| 52 |
$networks[] = $network_name;
|
| 53 |
}
|
| 73 |
}
|
| 74 |
?>
|
| 75 |
|
| 76 |
+
<div class="tab-vertical <?php if(count($available) == 1 || !$network ){ ?> active <?php } ?>">
|
| 77 |
<?php if(!apply_filters('rop_is_business_user', false)): ?>
|
| 78 |
<div class="rop-features-available"><p><span>Editing features are available on the <a href="<?php echo ROP_PRO_URL; ?>" target="_blank"><strong>Business version</strong></a></span></p></div>
|
| 79 |
<?php endif; ?>
|
| 83 |
_e("Please start the plugin to view the future shares", "tweet-old-post");
|
| 84 |
echo '</div>';
|
| 85 |
echo "</div>";
|
|
|
|
| 86 |
continue;
|
| 87 |
}
|
| 88 |
if(count($all) == 0){
|
| 90 |
_e('There is no suitable post to tweet make sure you excluded correct categories and selected the right dates.','tweet-old-post');
|
| 91 |
echo '</div>';
|
| 92 |
echo "</div>";
|
|
|
|
| 93 |
continue;
|
| 94 |
}
|
| 95 |
|
| 160 |
</div>
|
| 161 |
</div>
|
| 162 |
<?php
|
|
|
|
| 163 |
}
|
| 164 |
?>
|
| 165 |
|
inc/view.php
CHANGED
|
@@ -197,7 +197,7 @@
|
|
| 197 |
<li><?php _e('Go on Status & Review tab and set your app live from the top-right switch.','tweet-old-post');?> </li>
|
| 198 |
<li><?php _e('Now everything is done, click on <strong>Authorize App</strong> button.','tweet-old-post');?> </li>
|
| 199 |
</ol>
|
| 200 |
-
<h3><?php _e('You can
|
| 201 |
</div>
|
| 202 |
<form action="" method="post" id="cwp_top_form" class=" top_auth_form">
|
| 203 |
<fieldset class="option twptop_opt_app_id">
|
| 197 |
<li><?php _e('Go on Status & Review tab and set your app live from the top-right switch.','tweet-old-post');?> </li>
|
| 198 |
<li><?php _e('Now everything is done, click on <strong>Authorize App</strong> button.','tweet-old-post');?> </li>
|
| 199 |
</ol>
|
| 200 |
+
<h3><?php _e('You can follow this <a target="_blank" href="http://docs.themeisle.com/article/66-how-to-create-a-facebook-application" > tutorial</a> for more detailed instructions','tweet-old-post'); ?></h3>
|
| 201 |
</div>
|
| 202 |
<form action="" method="post" id="cwp_top_form" class=" top_auth_form">
|
| 203 |
<fieldset class="option twptop_opt_app_id">
|
readme.txt
CHANGED
|
@@ -125,6 +125,13 @@ https://themeisle.com/plugins/tweet-old-post-lite/
|
|
| 125 |
|
| 126 |
== Changelog ==
|
| 127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
**New in v7.3.5**
|
| 129 |
|
| 130 |
* Fixed issue with encoding
|
| 125 |
|
| 126 |
== Changelog ==
|
| 127 |
|
| 128 |
+
**New in v7.3.6**
|
| 129 |
+
|
| 130 |
+
* Fixed issue sample post rendering
|
| 131 |
+
* Improved error logging for facebook request
|
| 132 |
+
* Fixed typos in facebook description
|
| 133 |
+
* Added default tab for Manage Queue
|
| 134 |
+
|
| 135 |
**New in v7.3.5**
|
| 136 |
|
| 137 |
* Fixed issue with encoding
|
tweet-old-post.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
# Plugin URI: https://themeisle.com/plugins/tweet-old-post-lite/
|
| 5 |
# 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="https://themeisle.com/contact/?utm_source=plugindesc&utm_medium=announce&utm_campaign=top">contact </a> us!
|
| 6 |
# Author: ThemeIsle
|
| 7 |
-
# Version: 7.3.
|
| 8 |
# Author URI: https://themeisle.com/
|
| 9 |
# Text Domain: tweet-old-post
|
| 10 |
# Domain Path: /languages
|
|
@@ -19,7 +19,7 @@ define("ROPJSFILE", plugins_url('js/master.js',__FILE__ ));
|
|
| 19 |
define("ROPJSCOUNTDOWN", plugins_url('js/countdown.js',__FILE__ ));
|
| 20 |
define("ROPPLUGINBASENAME", plugin_basename(__FILE__));
|
| 21 |
define('ROP_TOP_FB_API_VERSION','v2.0');
|
| 22 |
-
define('ROP_VERSION','7.3.
|
| 23 |
// Require core.
|
| 24 |
require_once(ROPPLUGINPATH."/inc/core.php");
|
| 25 |
// Require core.
|
| 4 |
# Plugin URI: https://themeisle.com/plugins/tweet-old-post-lite/
|
| 5 |
# 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="https://themeisle.com/contact/?utm_source=plugindesc&utm_medium=announce&utm_campaign=top">contact </a> us!
|
| 6 |
# Author: ThemeIsle
|
| 7 |
+
# Version: 7.3.6
|
| 8 |
# Author URI: https://themeisle.com/
|
| 9 |
# Text Domain: tweet-old-post
|
| 10 |
# Domain Path: /languages
|
| 19 |
define("ROPJSCOUNTDOWN", plugins_url('js/countdown.js',__FILE__ ));
|
| 20 |
define("ROPPLUGINBASENAME", plugin_basename(__FILE__));
|
| 21 |
define('ROP_TOP_FB_API_VERSION','v2.0');
|
| 22 |
+
define('ROP_VERSION','7.3.6');
|
| 23 |
// Require core.
|
| 24 |
require_once(ROPPLUGINPATH."/inc/core.php");
|
| 25 |
// Require core.
|
