Custom Twitter Feeds - Version 1.2.6

Version Description

  • Fix: Hashtag feeds now work for hashtags beginning with a number e.g. #1august
  • Fix: Added a workaround for a minor formatting issue caused by some themes
Download this release

Release Info

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

Code changes from version 1.2.5 to 1.2.6

README.txt CHANGED
@@ -5,7 +5,7 @@ Support Website: http://smashballoon/custom-twitter-feeds/
5
  Tags: Twitter, Twitter feed, Tweets, Twitter widget, Custom Twitter Feed
6
  Requires at least: 3.0
7
  Tested up to: 4.8
8
- Stable tag: 1.2.5
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.5 =
225
  * New: Added an option to remove the placeholder icon that's used when a Tweet contains media. This can be found under `Customize > Show/Hide > Media placeholder` or using the `exclude` shortcode option, eg: `exclude="placeholder"`.
226
  * Fix: Individual tweet links in mobile would not properly link to mobile.twitter.com
5
  Tags: Twitter, Twitter feed, Tweets, Twitter widget, Custom Twitter Feed
6
  Requires at least: 3.0
7
  Tested up to: 4.8
8
+ Stable tag: 1.2.6
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.6 =
225
+ * Fix: Hashtag feeds now work for hashtags beginning with a number e.g. #1august
226
+ * Fix: Added a workaround for a minor formatting issue caused by some themes
227
+
228
  = 1.2.5 =
229
  * New: Added an option to remove the placeholder icon that's used when a Tweet contains media. This can be found under `Customize > Show/Hide > Media placeholder` or using the `exclude` shortcode option, eg: `exclude="placeholder"`.
230
  * Fix: Individual tweet links in mobile would not properly link to mobile.twitter.com
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.5
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.5' );
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.6
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.6' );
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
@@ -1359,7 +1359,7 @@ class CtfFeed
1359
  $tweet_html .= '<a href="https://twitter.com/' .$post['user']['screen_name'] . '/status/' . $post['id_str'] . '" class="ctf-tweet-date" target="_blank" style="' . $feed_options['datetextsize'] . $feed_options['datetextweight'] . $feed_options['textcolor'] . '">' . ctf_get_formatted_date( $post['created_at'] , $feed_options, $post['user']['utc_offset'] ) . '</a>';
1360
  $tweet_html .= '</div>';
1361
  } // show date
1362
- $tweet_html .= '</div> <!-- end .ctf-author-box-link -->';
1363
  $tweet_html .= '</div>';
1364
 
1365
  if ( ctf_show( 'text', $feed_options ) ) {
1359
  $tweet_html .= '<a href="https://twitter.com/' .$post['user']['screen_name'] . '/status/' . $post['id_str'] . '" class="ctf-tweet-date" target="_blank" style="' . $feed_options['datetextsize'] . $feed_options['datetextweight'] . $feed_options['textcolor'] . '">' . ctf_get_formatted_date( $post['created_at'] , $feed_options, $post['user']['utc_offset'] ) . '</a>';
1360
  $tweet_html .= '</div>';
1361
  } // show date
1362
+ $tweet_html .= '</div>';
1363
  $tweet_html .= '</div>';
1364
 
1365
  if ( ctf_show( 'text', $feed_options ) ) {
inc/admin-hooks.php CHANGED
@@ -11,7 +11,7 @@ function ctf_return_string_instructions( $val ) {
11
 
12
  add_filter( 'ctf_admin_validate_search_text', 'ctf_validate_search_text', 10, 1 );
13
  function ctf_validate_search_text( $val ) {
14
- preg_match( "/^[\p{L}][\p{L}0-9_]+|^#+[\p{L}][\p{L}0-9_]+/u", trim( $val ), $hashtags );
15
 
16
  $hashtags = preg_replace( "/#{2,}/", '', $hashtags );
17
 
11
 
12
  add_filter( 'ctf_admin_validate_search_text', 'ctf_validate_search_text', 10, 1 );
13
  function ctf_validate_search_text( $val ) {
14
+ preg_match( "/^[\p{L}0-9_]+|^#+[\p{L}0-9_]+/u", trim( $val ), $hashtags );
15
 
16
  $hashtags = preg_replace( "/#{2,}/", '', $hashtags );
17
 
js/ctf-scripts.js CHANGED
@@ -172,6 +172,7 @@ if(!ctf_js_exists){
172
 
173
  });
174
 
 
175
  }); // end .cff each loop
176
 
177
 
172
 
173
  });
174
 
175
+ $ctf.find('.ctf-author-box-link p:empty').remove();
176
  }); // end .cff each loop
177
 
178