AccessPress Twitter Feed – Twitter Feed for WordPress - Version 1.4.1

Version Description

  • Added cache disabling option
Download this release

Release Info

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

Code changes from version 1.4.0 to 1.4.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.0
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.0');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
@@ -300,7 +300,9 @@ if (!class_exists('APTF_Class')) {
300
  }
301
 
302
  function get_twitter_tweets($username,$tweets_number){
 
303
  $tweets = get_transient('aptf_tweets');
 
304
  if (false === $tweets) {
305
  $aptf_settings = $this->aptf_settings;
306
  $consumer_key = $aptf_settings['consumer_key'];
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.1
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.1');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
300
  }
301
 
302
  function get_twitter_tweets($username,$tweets_number){
303
+ $aptf_settings = get_option('aptf_settings');
304
  $tweets = get_transient('aptf_tweets');
305
+ $tweets = (isset($aptf_settings['disable_cache']) && $aptf_settings['disable_cache']==1)?false:$tweets;
306
  if (false === $tweets) {
307
  $aptf_settings = $this->aptf_settings;
308
  $consumer_key = $aptf_settings['consumer_key'];
inc/backend/boards/main-settings.php CHANGED
@@ -108,6 +108,13 @@
108
  <div class="aptf-option-note"><?php _e('Check if you want to display twitter follow button at the end of the feeds', 'accesspress-twitter-feed'); ?></div>
109
  </div>
110
  </div>
 
 
 
 
 
 
 
111
  <div class="aptf-option-wrapper">
112
  <label><?php ?></label>
113
  </div>
108
  <div class="aptf-option-note"><?php _e('Check if you want to display twitter follow button at the end of the feeds', 'accesspress-twitter-feed'); ?></div>
109
  </div>
110
  </div>
111
+ <div class="aptf-option-wrapper">
112
+ <label><?php _e('Disable Cache', 'accesspress-twitter-feed'); ?></label>
113
+ <div class="aptf-option-field">
114
+ <input type="checkbox" name="disable_cache" value="1" <?php if(isset($aptf_settings['disable_cache'])){checked($aptf_settings['disable_cache'],true); }?>/>
115
+ <div class="aptf-option-note"><?php _e('Check if you want to disable the caching of tweets and always want to fetch new tweets.', 'accesspress-twitter-feed'); ?></div>
116
+ </div>
117
+ </div>
118
  <div class="aptf-option-wrapper">
119
  <label><?php ?></label>
120
  </div>
inc/backend/save-settings.php CHANGED
@@ -32,7 +32,8 @@ $aptf_settings = array('consumer_key' => $consumer_key,
32
  'display_username' => isset($display_username)?1:0,
33
  'display_twitter_actions'=>isset($display_twitter_actions)?1:0,
34
  'fallback_message'=>$fallback_message,
35
- 'display_follow_button'=>isset($display_follow_button)?1:0
 
36
  );
37
  update_option('aptf_settings', $aptf_settings);
38
  $_SESSION['aptf_msg'] = __('Settings Saved Successfully','accesspress-twitter-feed');
32
  'display_username' => isset($display_username)?1:0,
33
  'display_twitter_actions'=>isset($display_twitter_actions)?1:0,
34
  'fallback_message'=>$fallback_message,
35
+ 'display_follow_button'=>isset($display_follow_button)?1:0,
36
+ 'disable_cache'=>isset($disable_cache)?1:0
37
  );
38
  update_option('aptf_settings', $aptf_settings);
39
  $_SESSION['aptf_msg'] = __('Settings Saved Successfully','accesspress-twitter-feed');
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.4
7
- Stable tag: 1.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,9 @@ Once you install the plugin , you can check some general documentation about how
107
 
108
 
109
  == Changelog ==
 
 
 
110
  = 1.4.0 =
111
  * Fixed small bug for link contained in the tweet text
112
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.4
7
+ Stable tag: 1.4.1
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.1 =
111
+ * Added cache disabling option
112
+
113
  = 1.4.0 =
114
  * Fixed small bug for link contained in the tweet text
115