AccessPress Twitter Feed – Twitter Feed for WordPress - Version 1.5.1

Version Description

  • Removed session from backend
Download this release

Release Info

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

Code changes from version 1.5.0 to 1.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.5.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.5.0');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
@@ -45,7 +45,6 @@ if (!class_exists('APTF_Class')) {
45
  function __construct() {
46
  $this->aptf_settings = get_option('aptf_settings');
47
  add_action('init', array($this, 'load_text_domain')); //loads plugin text domain for internationalization
48
- add_action('admin_init', array($this, 'session_init')); //starts session in admin section
49
  add_action('admin_menu', array($this, 'add_plugin_admin_menu')); //adds the menu in admin section
50
  add_action('admin_enqueue_scripts', array($this, 'register_admin_scripts')); //registers scripts and css for admin section
51
  register_activation_hook(__FILE__, array($this, 'load_default_settings')); //loads default settings for the plugin while activating the plugin
@@ -66,15 +65,7 @@ if (!class_exists('APTF_Class')) {
66
  load_plugin_textdomain('accesspress-twitter-feed', false, basename(dirname(__FILE__)) . '/languages');
67
  }
68
 
69
- /**
70
- * Starts Session
71
- */
72
- function session_init() {
73
- if (!session_id()) {
74
- session_start();
75
- }
76
- }
77
-
78
  /**
79
  * Loads Default Settings
80
  */
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.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.5.1');
28
  }
29
 
30
  if (!defined('APTF_TD')) {
45
  function __construct() {
46
  $this->aptf_settings = get_option('aptf_settings');
47
  add_action('init', array($this, 'load_text_domain')); //loads plugin text domain for internationalization
 
48
  add_action('admin_menu', array($this, 'add_plugin_admin_menu')); //adds the menu in admin section
49
  add_action('admin_enqueue_scripts', array($this, 'register_admin_scripts')); //registers scripts and css for admin section
50
  register_activation_hook(__FILE__, array($this, 'load_default_settings')); //loads default settings for the plugin while activating the plugin
65
  load_plugin_textdomain('accesspress-twitter-feed', false, basename(dirname(__FILE__)) . '/languages');
66
  }
67
 
68
+
 
 
 
 
 
 
 
 
69
  /**
70
  * Loads Default Settings
71
  */
inc/backend/save-settings.php CHANGED
@@ -37,6 +37,5 @@ $aptf_settings = array('consumer_key' => $consumer_key,
37
  );
38
  $aptf_settings = apply_filters('aptf_settings',$aptf_settings);
39
  update_option('aptf_settings', $aptf_settings);
40
- $_SESSION['aptf_msg'] = __('Settings Saved Successfully','accesspress-twitter-feed');
41
- wp_redirect(admin_url().'admin.php?page=ap-twitter-feed');
42
 
37
  );
38
  $aptf_settings = apply_filters('aptf_settings',$aptf_settings);
39
  update_option('aptf_settings', $aptf_settings);
40
+ wp_redirect(admin_url().'admin.php?page=ap-twitter-feed&message=1');
 
41
 
inc/backend/settings.php CHANGED
@@ -15,10 +15,10 @@ $aptf_settings = $this->aptf_settings;
15
  </ul>
16
  </div>
17
  <div class="aptf-board-wrapper">
18
- <?php if (isset($_SESSION['aptf_msg'])) { ?>
19
  <div class="aptf-message"><?php
20
- echo $_SESSION['aptf_msg'];
21
- unset($_SESSION['aptf_msg']);
22
  ?></div>
23
  <?php }
24
  ?>
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
  ?>
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: 4.0
6
  Tested up to: 4.6
7
- Stable tag: 1.5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -112,6 +112,9 @@ Once you install the plugin , you can check some general documentation about how
112
 
113
 
114
  == Changelog ==
 
 
 
115
  = 1.5.0 =
116
  * Fixed documentation link in how to use section
117
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.0
6
  Tested up to: 4.6
7
+ Stable tag: 1.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
112
 
113
 
114
  == Changelog ==
115
+ = 1.5.1 =
116
+ * Removed session from backend
117
+
118
  = 1.5.0 =
119
  * Fixed documentation link in how to use section
120