Skip to content

Commit 9a5ff26

Browse files
authored
Merge pull request #18 from n7studios/release-6.0.8
6.0.8
2 parents 0841004 + 8cb9ab8 commit 9a5ff26

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

lib/includes/class-wp-to-social-pro-publish.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ private function build_args( $post, $profile_id, $service, $status, $action, $ac
814814
}
815815

816816
// URL.
817-
switch ( $args['post_type'] ) {
817+
switch ( $status['post_type'] ) {
818818
/**
819819
* Link
820820
*/
@@ -835,16 +835,19 @@ private function build_args( $post, $profile_id, $service, $status, $action, $ac
835835
}
836836

837837
// Image(s).
838-
switch ( $args['post_type'] ) {
838+
switch ( $status['post_type'] ) {
839839
case 'pin':
840840
case 'googlebusiness':
841841
case 'story':
842842
case 'image':
843843
switch ( $status['image'] ) {
844844
/**
845845
* Featured, Additional or Content Image
846+
* 1 and 2 are used for backward compatibility where settings are not updated.
846847
*/
847848
case 'featured_image':
849+
case '1':
850+
case '2':
848851
// Plugin's First (Featured) Image, Post's Featured Image or Post Content's First Image.
849852
$image = $this->get_post_image( $post, $service, $status['post_type'] );
850853

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: social media automation, auto post, buffer, social media scheduler, auto p
55
Requires at least: 5.0
66
Tested up to: 7.0
77
Requires PHP: 7.4
8-
Stable tag: 6.0.7
8+
Stable tag: 6.0.8
99
License: GPLv3 or later
1010
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1111

@@ -317,6 +317,9 @@ Visit [our website](https://www.wpzinc.com/plugins/wordpress-to-buffer-pro/) to
317317

318318
== Changelog ==
319319

320+
= 6.0.8 (2026-06-20) =
321+
* Fix: Status: Set image when Status' Type is not 'Image' and posting to a network that only supports images
322+
320323
= 6.0.7 (2026-06-14) =
321324
* Fix: Settings: Post Types: Undefined variable $accounts
322325

wp-to-buffer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @wordpress-plugin
99
* Plugin Name: WP to Buffer
1010
* Plugin URI: http://www.wpzinc.com/plugins/wp-to-buffer-pro
11-
* Version: 6.0.7
11+
* Version: 6.0.8
1212
* Author: WP Zinc
1313
* Author URI: http://www.wpzinc.com
1414
* Description: Send WordPress Pages, Posts or Custom Post Types to your Buffer (buffer.com) account for scheduled publishing to social networks.
@@ -27,8 +27,8 @@
2727
}
2828

2929
// Define Plugin version and build date.
30-
define( 'WP_TO_BUFFER_PLUGIN_VERSION', '6.0.7' );
31-
define( 'WP_TO_BUFFER_PLUGIN_BUILD_DATE', '2026-06-14 10:30:00' );
30+
define( 'WP_TO_BUFFER_PLUGIN_VERSION', '6.0.8' );
31+
define( 'WP_TO_BUFFER_PLUGIN_BUILD_DATE', '2026-06-20 18:00:00' );
3232

3333
// Define Plugin paths.
3434
define( 'WP_TO_BUFFER_PLUGIN_URL', plugin_dir_url( __FILE__ ) );

0 commit comments

Comments
 (0)