Social Icons WordPress Plugin – AccessPress Social Icons - Version 1.6.1

Version Description

  • Removed session from backend
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Icons WordPress Plugin – AccessPress Social Icons
Version 1.6.1
Comparing to
See all releases

Code changes from version 1.6.0 to 1.6.1

accesspress-social-icons.php CHANGED
@@ -4,7 +4,7 @@ defined('ABSPATH') or die("No script kiddies please!");
4
  * Plugin Name:AccessPress Social Icons
5
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
6
  * Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
7
- * Version:1.6.0
8
  * Author:AccessPress Themes
9
  * Author URI:http://accesspressthemes.com/
10
  * Text Domain: accesspress-social-icons
@@ -46,7 +46,7 @@ if (!defined('APS_LANG_DIR')) {
46
  }
47
  if(!defined('APS_VERSION'))
48
  {
49
- define('APS_VERSION','1.6.0');
50
  }
51
  /**
52
  * Register of widgets
@@ -64,7 +64,6 @@ if (!class_exists('APS_Class')) {
64
  add_action('wp_enqueue_scripts', array($this, 'register_frontend_assets'));//registers assets for frontend
65
  add_action('admin_menu', array($this, 'add_aps_menu')); //adds plugin menu in wp-admin
66
  add_action('admin_enqueue_scripts', array($this, 'register_admin_assets')); //registers all the assets required for wp-admin
67
- add_action('admin_init', array($this, 'admin_session_init')); //intializes session
68
  add_action('admin_post_aps_add_new_set', array($this, 'aps_add_new_set')); //add new set action
69
  add_action('admin_post_aps_edit_action', array($this, 'aps_edit_action')); //icon set edit action
70
  add_action('admin_post_aps_delete_action', array($this, 'aps_delete_action')); //icon set delete action
@@ -177,12 +176,7 @@ if (!class_exists('APS_Class')) {
177
  echo "</pre>";
178
  }
179
 
180
- //starts the session
181
- function admin_session_init() {
182
- if (!session_id() && !headers_sent()) {
183
- session_start();
184
- }
185
- }
186
 
187
  //Icon set delete section
188
  function aps_delete_action() {
4
  * Plugin Name:AccessPress Social Icons
5
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
6
  * Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
7
+ * Version:1.6.1
8
  * Author:AccessPress Themes
9
  * Author URI:http://accesspressthemes.com/
10
  * Text Domain: accesspress-social-icons
46
  }
47
  if(!defined('APS_VERSION'))
48
  {
49
+ define('APS_VERSION','1.6.1');
50
  }
51
  /**
52
  * Register of widgets
64
  add_action('wp_enqueue_scripts', array($this, 'register_frontend_assets'));//registers assets for frontend
65
  add_action('admin_menu', array($this, 'add_aps_menu')); //adds plugin menu in wp-admin
66
  add_action('admin_enqueue_scripts', array($this, 'register_admin_assets')); //registers all the assets required for wp-admin
 
67
  add_action('admin_post_aps_add_new_set', array($this, 'aps_add_new_set')); //add new set action
68
  add_action('admin_post_aps_edit_action', array($this, 'aps_edit_action')); //icon set edit action
69
  add_action('admin_post_aps_delete_action', array($this, 'aps_delete_action')); //icon set delete action
176
  echo "</pre>";
177
  }
178
 
179
+
 
 
 
 
 
180
 
181
  //Icon set delete section
182
  function aps_delete_action() {
inc/backend/edit-icon-set.php CHANGED
@@ -9,12 +9,11 @@ $icon_extra = unserialize($icon_set->icon_extra);
9
  //$this->print_array($icon_extra);
10
  ?>
11
  <div class="aps-add-set-wrapper">
12
- <?php if (isset($_SESSION['aps_message'])) { ?>
13
  <div class="aps-message aps-message-success updated">
14
  <p>
15
  <?php
16
- echo $_SESSION['aps_message'];
17
- unset($_SESSION['aps_message']);
18
  ?>
19
  </p>
20
  </div>
9
  //$this->print_array($icon_extra);
10
  ?>
11
  <div class="aps-add-set-wrapper">
12
+ <?php if (isset($_GET['message'])) { ?>
13
  <div class="aps-message aps-message-success updated">
14
  <p>
15
  <?php
16
+ echo __('Icon Set Updated Successfully','accesspress-social-icons');
 
17
  ?>
18
  </p>
19
  </div>
inc/backend/main-page.php CHANGED
@@ -6,13 +6,13 @@
6
  } else {
7
  ?>
8
  <?php
9
- if (isset($_SESSION['aps_message'])) {
10
  ?>
11
  <div class="aps-message aps-message-success updated">
12
  <p>
13
  <?php
14
- echo $_SESSION['aps_message'];
15
- unset($_SESSION['aps_message']);
16
  ?>
17
  </p>
18
  </div>
6
  } else {
7
  ?>
8
  <?php
9
+ if (isset($_GET['message'])) {
10
  ?>
11
  <div class="aps-message aps-message-success updated">
12
  <p>
13
  <?php
14
+ echo __('Icon Set Added Successfully','accesspress-social-icons');;
15
+
16
  ?>
17
  </p>
18
  </div>
inc/backend/save-set.php CHANGED
@@ -201,11 +201,11 @@ $_SESSION['aps_message'] = __('Icon Set Saved Successfully','accesspress-social-
201
  }
202
  if(isset($_POST['current_page']))
203
  {
204
- wp_redirect(sanitize_text_field($_POST['current_page']));
205
  }
206
  else
207
  {
208
- wp_redirect(admin_url().'admin.php?page=aps-social');
209
  }
210
 
211
 
201
  }
202
  if(isset($_POST['current_page']))
203
  {
204
+ wp_redirect(sanitize_text_field($_POST['current_page']).'&message=1');
205
  }
206
  else
207
  {
208
+ wp_redirect(admin_url().'admin.php?page=aps-social&message=1');
209
  }
210
 
211
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social icon, social icons, social media, social icon widget, social icons
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.0
6
  Tested up to: 4.6
7
- Stable tag: 1.6.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -133,6 +133,9 @@ Once you install the plugin , you can check some general documentation about how
133
  4. Backend Lcon Sets Listing
134
 
135
  == Changelog ==
 
 
 
136
  = 1.6.0 =
137
  * Added More WordPress Resources Link
138
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.0
6
  Tested up to: 4.6
7
+ Stable tag: 1.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
133
  4. Backend Lcon Sets Listing
134
 
135
  == Changelog ==
136
+ = 1.6.1 =
137
+ * Removed session from backend
138
+
139
  = 1.6.0 =
140
  * Added More WordPress Resources Link
141