PluginProbe
Social Media Auto Poster – Schedule & Publish to Buffer / 6.2.7
Social Media Auto Poster – Schedule & Publish to Buffer v6.2.7
6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.2 6.1.1 6.1.0 6.0.9 6.0.8 6.0.7 6.0.6 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 3.8.1 3.8.2 3.8.3 3.8.4 All 128 releases
← All changes | lib/social/includes/class-publish.php +15 -2 6.2.3 → 6.2.7 View file →
@@ -508,8 +508,22 @@
508 508
509 509 // Display an error.
510 510 if ( is_wp_error( $account_profiles ) ) {
511 511 $this->base->get_class( 'notices' )->add_error_notice( $account_profiles->get_error_message() );
512 +
513 + // Log the connection error so it's visible in the Logs screen, not just debug.log.
514 + if ( $this->base->get_class( 'log' )->is_enabled() ) {
515 + $this->base->get_class( 'log' )->add(
516 + $post_id,
517 + array(
518 + 'action' => $action,
519 + 'request_sent' => gmdate( 'Y-m-d H:i:s' ),
520 + 'result' => 'error',
521 + 'result_message' => $account_profiles->get_error_message(),
522 + )
523 + );
524 + }
525 +
512 526 continue;
513 527 }
514 528
515 529 // Merge profiles with existing profiles from other accounts.
@@ -762,10 +776,9 @@
762 776 break;
763 777 }
764 778
765 779 // Build API compatible arguments.
766 - $thumbnail = $this->get_post_image( $post, $service, $status['post_type'] );
767 - $args = array(
780 + $args = array(
768 781 'account' => $account,
769 782 'post_type' => $status['post_type'],
770 783 'profile_ids' => array( $profile_id ),
771 784 'text' => $this->parse_text( $post, $status['message'], ( $service === 'instagram' ? true : false ) ),