Skip to content

Commit eca4a86

Browse files
committed
Merge pull request #67 from Codeinwp/development
Fixed issue with inverted settings in post format and custom schedule
2 parents 1f16ca4 + 6fdd363 commit eca4a86

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

inc/view-advancedscheduling.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@
5151
foreach($available as $network_name) {
5252
$networks[] = $network_name;
5353
}
54-
$networks[] = null;
54+
if(count($networks) > 1){
5555

56+
$networks[] = null;
57+
58+
}
5659
$count = 20;
5760
if(apply_filters('rop_is_business_user', false)){
5861
$count = 100;

inc/view-postformat.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
<?php endforeach;?>
1313
</ul>
1414
<?php endif; ?>
15-
<?php $first = true; foreach($format_fields as $network_name=>$network_details) { ?>
15+
<?php $first = true; foreach($networks as $network_name) { ?>
1616

1717
<div class="tab-vertical <?php if($first){ ?> active <?php } ?>">
1818

19-
<?php foreach ($network_details as $key=>$field) {
19+
<?php foreach ($format_fields[$network_name] as $key=>$field) {
2020
$field['option'] = $network_name."_".$field['option'];
2121
?>
2222
<fieldset class="option twp<?php echo $key; ?>" <?php if(isset($field['dependency'])) { ?> data-dependent='<?php echo json_encode($field['dependency']); ?>' <?php } ?>>

inc/view-postschedule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</ul>
1616
<?php endif; ?>
1717

18-
<?php $first = true; foreach($all_networks as $network_name ) { ?>
18+
<?php $first = true; foreach($networks as $network_name ) { ?>
1919

2020
<div class="tab-vertical <?php if($first){ ?> active <?php } ?>" data-network="<?php echo $network_name; ?>">
2121
<input type="hidden" value="<?php echo @$cwp_top_global_schedule[$network_name.'_schedule_type_selected'];?>" id="<?php echo $network_name.'_schedule_type_selected' ?>" name="<?php echo $network_name.'_schedule_type_selected' ?>" />

readme.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ https://themeisle.com/plugins/tweet-old-post-lite/
125125

126126
== Changelog ==
127127

128+
**New in v7.3.7**
129+
130+
* Fixed issue with inverted settings in post format and custom schedule
131+
128132
**New in v7.3.6**
129133

130134
* Fixed issue sample post rendering

tweet-old-post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Plugin URI: https://themeisle.com/plugins/tweet-old-post-lite/
55
# 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!
66
# Author: ThemeIsle
7-
# Version: 7.3.6
7+
# Version: 7.3.7
88
# Author URI: https://themeisle.com/
99
# Text Domain: tweet-old-post
1010
# Domain Path: /languages
@@ -19,7 +19,7 @@
1919
define("ROPJSCOUNTDOWN", plugins_url('js/countdown.js',__FILE__ ));
2020
define("ROPPLUGINBASENAME", plugin_basename(__FILE__));
2121
define('ROP_TOP_FB_API_VERSION','v2.0');
22-
define('ROP_VERSION','7.3.6');
22+
define('ROP_VERSION','7.3.7');
2323
// Require core.
2424
require_once(ROPPLUGINPATH."/inc/core.php");
2525
// Require core.

0 commit comments

Comments
 (0)