AccessPress Twitter Feed – Twitter Feed for WordPress - Version 1.5.9

Version Description

  • Removed use of php session
  • Updated some sanitizations
  • WordPress version 5.0 compatibility checked
Download this release

Release Info

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

Code changes from version 1.5.8 to 1.5.9

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.5.8
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.5.8');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
@@ -153,8 +153,7 @@ if (!class_exists('APTF_Class')) {
153
  if (!empty($_GET) && wp_verify_nonce($_GET['_wpnonce'], 'aptf-restore-nonce')) {
154
  $aptf_settings = $this->get_default_settings();
155
  update_option('aptf_settings', $aptf_settings);
156
- $_SESSION['aptf_msg'] = __('Default Settings Restored Successfully.', 'accesspress-twitter-feed');
157
- wp_redirect(admin_url() . 'admin.php?page=ap-twitter-feed');
158
  } else {
159
  die('No script kiddies please!');
160
  }
@@ -187,8 +186,7 @@ if (!class_exists('APTF_Class')) {
187
  */
188
  function aptf_delete_cache() {
189
  delete_transient('aptf_tweets');
190
- $_SESSION['aptf_msg'] = __('Cache Deleted Successfully.', 'accesspress-twitter-feed');
191
- wp_redirect(admin_url() . 'admin.php?page=ap-twitter-feed');
192
  }
193
 
194
  /**
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.5.9
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.5.9');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
153
  if (!empty($_GET) && wp_verify_nonce($_GET['_wpnonce'], 'aptf-restore-nonce')) {
154
  $aptf_settings = $this->get_default_settings();
155
  update_option('aptf_settings', $aptf_settings);
156
+ wp_redirect(admin_url() . 'admin.php?page=ap-twitter-feed&message=3');
 
157
  } else {
158
  die('No script kiddies please!');
159
  }
186
  */
187
  function aptf_delete_cache() {
188
  delete_transient('aptf_tweets');
189
+ wp_redirect(admin_url() . 'admin.php?page=ap-twitter-feed&message=2');
 
190
  }
191
 
192
  /**
inc/backend/settings.php CHANGED
@@ -15,12 +15,26 @@ $aptf_settings = $this->aptf_settings;
15
  </ul>
16
  </div>
17
  <div class="aptf-board-wrapper">
18
- <?php if (isset($_GET['message'])) { ?>
19
- <div class="aptf-message"><?php
20
- echo __('Settings Saved Successfully','accesspress-twitter-feed');
21
-
22
- ?></div>
23
- <?php }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  ?>
25
  <form method="post" action="<?php echo admin_url() . 'admin-post.php'; ?>">
26
  <input type="hidden" name="action" value="aptf_form_action"/>
15
  </ul>
16
  </div>
17
  <div class="aptf-board-wrapper">
18
+ <?php
19
+ if(!empty($_GET['message'])){
20
+ switch($_GET['message']){
21
+ case 1:
22
+ $message = __('Settings saved successfully','accesspress-twitter-feed');
23
+ break;
24
+ case 2:
25
+ $message = __('Cache deleted successfully','accesspress-twitter-feed');
26
+ break;
27
+ case 3:
28
+ $message = __('Settings restored successfully','accesspress-twitter-feed');
29
+ break;
30
+ }
31
+ ?>
32
+ <div class="updated notice is-dismissible">
33
+ <p><?php echo $message;?></p>
34
+ </div>
35
+ <?php
36
+ }
37
+
38
  ?>
39
  <form method="post" action="<?php echo admin_url() . 'admin-post.php'; ?>">
40
  <input type="hidden" name="action" value="aptf_form_action"/>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Access Keys
3
  Tags: twitter, twitter feeds, twitter slider, twitter feeds slider, twitter plugin, twitter feed plugin, twitter tweets, tweets, twitter tweet plugin, recent tweets widget, recent tweets plugin, recent tweet feeds
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.0
6
- Tested up to: 4.9
7
- Stable tag: 1.5.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -125,6 +125,11 @@ Once you install the plugin , you can check some general documentation about how
125
 
126
 
127
  == Changelog ==
 
 
 
 
 
128
  = 1.5.8 =
129
  * Updated More WordPress Resources tab
130
 
3
  Tags: twitter, twitter feeds, twitter slider, twitter feeds slider, twitter plugin, twitter feed plugin, twitter tweets, tweets, twitter tweet plugin, recent tweets widget, recent tweets plugin, recent tweet feeds
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.0
6
+ Tested up to: 5.0
7
+ Stable tag: 1.5.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
125
 
126
 
127
  == Changelog ==
128
+ = 1.5.9 =
129
+ * Removed use of php session
130
+ * Updated some sanitizations
131
+ * WordPress version 5.0 compatibility checked
132
+
133
  = 1.5.8 =
134
  * Updated More WordPress Resources tab
135