AccessPress Twitter Feed – Twitter Feed for WordPress - Version 1.4.4

Version Description

  • Added exclude_replies paramter in the API URL to exclude replies
  • Added aptf_api_url filter
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 AccessPress Twitter Feed – Twitter Feed for WordPress
Version 1.4.4
Comparing to
See all releases

Code changes from version 1.4.3 to 1.4.4

Files changed (2) hide show
  1. accesspress-twitter-feed.php +4 -3
  2. readme.txt +5 -1
accesspress-twitter-feed.php CHANGED
@@ -4,7 +4,7 @@ defined('ABSPATH') or die('No script kiddies please!');
4
  * Plugin Name: AccessPress Twitter Feed
5
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/
6
  * Description: A plugin to show your twitter feed in your site with various configurable settings
7
- * Version: 1.4.3
8
  * Author: AccessPress Themes
9
  * Author URI: http://accesspressthemes.com
10
  * Text Domain: accesspress-twitter-feed
@@ -24,7 +24,7 @@ if (!defined('APTF_CSS_DIR')) {
24
  define('APTF_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
25
  }
26
  if (!defined('APTF_VERSION')) {
27
- define('APTF_VERSION', '1.4.3');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
@@ -310,7 +310,8 @@ if (!class_exists('APTF_Class')) {
310
  $access_token = $aptf_settings['access_token'];
311
  $access_token_secret = $aptf_settings['access_token_secret'];
312
  $oauth_connection = $this->get_oauth_connection($consumer_key, $consumer_secret, $access_token, $access_token_secret);
313
- $tweets = $oauth_connection->get("https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=".$username."&count=".$tweets_number);
 
314
  $cache_period = intval($aptf_settings['cache_period']) * 60;
315
  $cache_period = ($cache_period < 1) ? 3600 : $cache_period;
316
  if(!isset($tweets->errors)){
4
  * Plugin Name: AccessPress Twitter Feed
5
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-twitter-feed/
6
  * Description: A plugin to show your twitter feed in your site with various configurable settings
7
+ * Version: 1.4.4
8
  * Author: AccessPress Themes
9
  * Author URI: http://accesspressthemes.com
10
  * Text Domain: accesspress-twitter-feed
24
  define('APTF_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
25
  }
26
  if (!defined('APTF_VERSION')) {
27
+ define('APTF_VERSION', '1.4.4');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
310
  $access_token = $aptf_settings['access_token'];
311
  $access_token_secret = $aptf_settings['access_token_secret'];
312
  $oauth_connection = $this->get_oauth_connection($consumer_key, $consumer_secret, $access_token, $access_token_secret);
313
+ $api_url = "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=".$username."&count=".$tweets_number.'&exclude_replies=true';
314
+ $tweets = $oauth_connection->get(apply_filters('aptf_api_url',$api_url,$username,$tweets_number));
315
  $cache_period = intval($aptf_settings['cache_period']) * 60;
316
  $cache_period = ($cache_period < 1) ? 3600 : $cache_period;
317
  if(!isset($tweets->errors)){
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: twitter, twitter feeds, twitter slider, twitter feeds slider, twitter plug
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.5
7
- Stable tag: 1.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,10 @@ Once you install the plugin , you can check some general documentation about how
107
 
108
 
109
  == Changelog ==
 
 
 
 
110
  = 1.4.3 =
111
  * Added aptf_feeds_template action under the templates choosing option
112
  * Added aptf_settings filter while saving the settings
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.5
7
+ Stable tag: 1.4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
107
 
108
 
109
  == Changelog ==
110
+ = 1.4.4 =
111
+ * Added exclude_replies paramter in the API URL to exclude replies
112
+ * Added aptf_api_url filter
113
+
114
  = 1.4.3 =
115
  * Added aptf_feeds_template action under the templates choosing option
116
  * Added aptf_settings filter while saving the settings