Skip to content

Commit 0dd2fa5

Browse files
release: version 9.3.1
- Fixes issue with previously shared posts being published
2 parents d4a084b + d93abab commit 0dd2fa5

4 files changed

Lines changed: 20 additions & 1 deletion

File tree

includes/admin/class-rop-admin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ public function enqueue_scripts() {
371371
$rop_api_settings['exclude_apply_limit'] = $this->limit_exclude_list();
372372
$rop_api_settings['publish_now'] = array(
373373
'instant_share_enabled' => $settings->get_instant_sharing(),
374+
'instant_share_by_default' => $settings->get_instant_sharing_default(),
374375
'accounts' => $active_accounts,
375376
);
376377
$rop_api_settings['custom_messages'] = $settings->get_custom_messages();

includes/admin/models/class-rop-posts-selector-model.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,10 @@ public function get_publish_now_posts() {
734734
'key' => 'rop_publish_now',
735735
'value' => 'yes',
736736
),
737+
array( // NOTE: Extra check since the previous versions were not deleting the status correctly.
738+
'key' => 'rop_publish_now_status',
739+
'value' => 'queued',
740+
),
737741
),
738742
'numberposts' => 300,
739743
'orderby' => 'modified',
@@ -748,7 +752,7 @@ public function get_publish_now_posts() {
748752
while ( $query->have_posts() ) {
749753
$query->the_post();
750754
$posts[] = $query->post;
751-
// delete the meta so that when the post loads again after publishing, the checkboxes are cleared.
755+
// update the meta so that when the post loads again after publishing, the checkboxes are cleared.
752756
update_post_meta( $query->post, 'rop_publish_now', 'no' );
753757
}
754758
}

includes/admin/models/class-rop-settings-model.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,19 @@ public function get_instant_sharing() {
577577
return isset( $this->settings['instant_share'] ) ? $this->settings['instant_share'] : false;
578578
}
579579

580+
/**
581+
* Getter for Instant Sharing Default option.
582+
*
583+
* @since 9.0.6
584+
* @access public
585+
* @return bool
586+
*/
587+
public function get_instant_sharing_default() {
588+
// This option is only kept for backward compatibility.
589+
$value = isset( $this->settings['instant_share_default'] ) ? $this->settings['instant_share_default'] : true;
590+
return apply_filters( 'rop_instant_sharing_default', $value );
591+
}
592+
580593
/**
581594
* Getter for Update Post Published Date After Share feature.
582595
*

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ Revive Social isn't like every other social media marketing tool. We've tailored
114114
- WordPress to Vkontakte(VK) Communities [Pro]
115115
- WordPress to Telegram [Pro]
116116
- WordPress to Mastodon [Pro]
117+
- WordPress to Bluesky [Pro]
117118

118119
Some of the available networks and features require the Pro version of the plugin. Check out the free vs pro table [here.](https://docs.revive.social/article/941-revive-old-post-free-vs-pro)
119120

0 commit comments

Comments
 (0)