Custom Twitter Feeds - Version 1.2.3

Version Description

  • Fix: Fixed PHP warning when there's no media in tweets under certain circumstances
  • Fix: Added missing "alt" attributes for avatars
Download this release

Release Info

Developer smashballoon
Plugin Icon 128x128 Custom Twitter Feeds
Version 1.2.3
Comparing to
See all releases

Code changes from version 1.2.2 to 1.2.3

Files changed (3) hide show
  1. README.txt +6 -2
  2. custom-twitter-feed.php +2 -2
  3. inc/CtfFeed.php +1 -3
README.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: smashballoon, craig-at-smash-balloon
4
  Support Website: http://smashballoon/custom-twitter-feeds/
5
  Tags: Twitter, Twitter feed, Custom Twitter Feed, Twitter feeds, Custom Twitter Feeds, Tweets, Custom Tweets, Tweets feed, Twitter widget, Custom Twitter widget, Twitter plugin, Twitter API, Twitter tweets
6
  Requires at least: 3.0
7
- Tested up to: 4.7
8
- Stable tag: 1.2.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -221,6 +221,10 @@ If you're still having trouble displaying your Tweets after trying the common is
221
  2. Custom Twitter Feeds plugin Settings pages
222
 
223
  == Changelog ==
 
 
 
 
224
  = 1.2.2 =
225
  * Fix: Fixed an issue with include/exclude string to array conversion warning
226
 
4
  Support Website: http://smashballoon/custom-twitter-feeds/
5
  Tags: Twitter, Twitter feed, Custom Twitter Feed, Twitter feeds, Custom Twitter Feeds, Tweets, Custom Tweets, Tweets feed, Twitter widget, Custom Twitter widget, Twitter plugin, Twitter API, Twitter tweets
6
  Requires at least: 3.0
7
+ Tested up to: 4.7.3
8
+ Stable tag: 1.2.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
221
  2. Custom Twitter Feeds plugin Settings pages
222
 
223
  == Changelog ==
224
+ = 1.2.3 =
225
+ * Fix: Fixed PHP warning when there's no media in tweets under certain circumstances
226
+ * Fix: Added missing "alt" attributes for avatars
227
+
228
  = 1.2.2 =
229
  * Fix: Fixed an issue with include/exclude string to array conversion warning
230
 
custom-twitter-feed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Twitter Feeds
4
  Plugin URI: http://smashballoon.com/custom-twitter-feeds
5
  Description: Customizable Twitter feeds for your website
6
- Version: 1.2.2
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  Text Domain: custom-twitter-feeds
@@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
  */
25
 
26
  define( 'CTF_URL', plugin_dir_path( __FILE__ ) );
27
- define( 'CTF_VERSION', '1.2.2' );
28
  define( 'CTF_TITLE', 'Custom Twitter Feeds' );
29
  define( 'CTF_JS_URL', plugins_url( '/js/ctf-scripts.js?ver=' . CTF_VERSION , __FILE__ ) );
30
  define( 'OAUTH_PROCESSOR_URL', 'https://smashballoon.com/ctf-at-retriever/?return_uri=' );
3
  Plugin Name: Custom Twitter Feeds
4
  Plugin URI: http://smashballoon.com/custom-twitter-feeds
5
  Description: Customizable Twitter feeds for your website
6
+ Version: 1.2.3
7
  Author: Smash Balloon
8
  Author URI: http://smashballoon.com/
9
  Text Domain: custom-twitter-feeds
24
  */
25
 
26
  define( 'CTF_URL', plugin_dir_path( __FILE__ ) );
27
+ define( 'CTF_VERSION', '1.2.3' );
28
  define( 'CTF_TITLE', 'Custom Twitter Feeds' );
29
  define( 'CTF_JS_URL', plugins_url( '/js/ctf-scripts.js?ver=' . CTF_VERSION , __FILE__ ) );
30
  define( 'OAUTH_PROCESSOR_URL', 'https://smashballoon.com/ctf-at-retriever/?return_uri=' );
inc/CtfFeed.php CHANGED
@@ -1320,7 +1320,6 @@ class CtfFeed
1320
  }
1321
  } else {
1322
  unset( $post_media );
1323
- unset( $post_media_text );
1324
  }
1325
 
1326
  // include tweet view
@@ -1337,7 +1336,7 @@ class CtfFeed
1337
  $tweet_html .= '<div class="ctf-author-box-link" target="_blank" style="' . $feed_options['authortextsize'] . $feed_options['authortextweight'] . $feed_options['textcolor'] . '">';
1338
  if ( ctf_show( 'avatar', $feed_options ) ) {
1339
  $tweet_html .= '<a href="https://twitter.com/' . $post['user']['screen_name'] .'" class="ctf-author-avatar" target="_blank" style="' . $feed_options['authortextsize'] . $feed_options['authortextweight'] . $feed_options['textcolor'] . '">';
1340
- $tweet_html .= '<img src="' . $post['user']['profile_image_url_https'] . '" width="48" height="48">';
1341
  $tweet_html .= '</a>';
1342
  }
1343
 
@@ -1364,7 +1363,6 @@ class CtfFeed
1364
  if ( $feed_options['linktexttotwitter'] ) {
1365
  $tweet_html .= '<a href="https://twitter.com/statuses/' . $post['id_str'] . '" target="_blank">';
1366
  $tweet_html .= '<p class="ctf-tweet-text" style="' . $feed_options['tweettextsize'] . $feed_options['tweettextweight'] . $feed_options['textcolor'] . '">' . nl2br( $post['text'] ) . $post_media_text .'</p>';
1367
- //$tweet_html .= $post_media_text;
1368
  $tweet_html .= '</a>';
1369
  } else {
1370
  $tweet_html .= '<p class="ctf-tweet-text" style="' . $feed_options['tweettextsize'] . $feed_options['tweettextweight'] . $feed_options['textcolor'] . '">' . nl2br( $post['text'] );
1320
  }
1321
  } else {
1322
  unset( $post_media );
 
1323
  }
1324
 
1325
  // include tweet view
1336
  $tweet_html .= '<div class="ctf-author-box-link" target="_blank" style="' . $feed_options['authortextsize'] . $feed_options['authortextweight'] . $feed_options['textcolor'] . '">';
1337
  if ( ctf_show( 'avatar', $feed_options ) ) {
1338
  $tweet_html .= '<a href="https://twitter.com/' . $post['user']['screen_name'] .'" class="ctf-author-avatar" target="_blank" style="' . $feed_options['authortextsize'] . $feed_options['authortextweight'] . $feed_options['textcolor'] . '">';
1339
+ $tweet_html .= '<img src="' . $post['user']['profile_image_url_https'] . '" alt="' . $post['user']['screen_name'] . '" width="48" height="48">';
1340
  $tweet_html .= '</a>';
1341
  }
1342
 
1363
  if ( $feed_options['linktexttotwitter'] ) {
1364
  $tweet_html .= '<a href="https://twitter.com/statuses/' . $post['id_str'] . '" target="_blank">';
1365
  $tweet_html .= '<p class="ctf-tweet-text" style="' . $feed_options['tweettextsize'] . $feed_options['tweettextweight'] . $feed_options['textcolor'] . '">' . nl2br( $post['text'] ) . $post_media_text .'</p>';
 
1366
  $tweet_html .= '</a>';
1367
  } else {
1368
  $tweet_html .= '<p class="ctf-tweet-text" style="' . $feed_options['tweettextsize'] . $feed_options['tweettextweight'] . $feed_options['textcolor'] . '">' . nl2br( $post['text'] );