Social Counter for WordPress – AccessPress Social Counter - Version 1.6.5

Version Description

  • Removed session from backend
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Counter for WordPress – AccessPress Social Counter
Version 1.6.5
Comparing to
See all releases

Code changes from version 1.6.4 to 1.6.5

accesspress-social-counter.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: AccessPress Social Counter
4
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
5
  * Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
6
- * Version: 1.6.4
7
  * Author: AccessPress Themes
8
  * Author URI: http://accesspressthemes.com
9
  * Text Domain: aps-counter
@@ -24,7 +24,7 @@ if (!defined('SC_CSS_DIR')) {
24
  define('SC_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
25
  }
26
  if (!defined('SC_VERSION')) {
27
- define('SC_VERSION', '1.6.4');
28
  }
29
  /**
30
  * Register of widgets
@@ -43,7 +43,6 @@ if (!class_exists('SC_Class')) {
43
  $this->apsc_settings = get_option('apsc_settings');
44
  register_activation_hook(__FILE__, array($this, 'load_default_settings')); //loads default settings for the plugin while activating the plugin
45
  add_action('init', array($this, 'plugin_text_domain')); //loads text domain for translation ready
46
- add_action('init', array($this, 'session_init')); //starts the session
47
  add_action('admin_menu', array($this, 'add_sc_menu')); //adds plugin menu in wp-admin
48
  add_action('admin_enqueue_scripts', array($this, 'register_admin_assets')); //registers admin assests such as js and css
49
  add_action('wp_enqueue_scripts', array($this, 'register_frontend_assets')); //registers js and css for frontend
@@ -131,15 +130,7 @@ if (!class_exists('SC_Class')) {
131
  echo "</pre>";
132
  }
133
 
134
- /**
135
- * Starts the session
136
- */
137
- function session_init() {
138
- if (!session_id()) {
139
- session_start();
140
- }
141
- }
142
-
143
  /**
144
  * Restores the default
145
  */
3
  * Plugin Name: AccessPress Social Counter
4
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-counter/
5
  * Description: A plugin to display your social accounts fans, subscribers and followers number on your website with handful of backend settings and interface.
6
+ * Version: 1.6.5
7
  * Author: AccessPress Themes
8
  * Author URI: http://accesspressthemes.com
9
  * Text Domain: aps-counter
24
  define('SC_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
25
  }
26
  if (!defined('SC_VERSION')) {
27
+ define('SC_VERSION', '1.6.5');
28
  }
29
  /**
30
  * Register of widgets
43
  $this->apsc_settings = get_option('apsc_settings');
44
  register_activation_hook(__FILE__, array($this, 'load_default_settings')); //loads default settings for the plugin while activating the plugin
45
  add_action('init', array($this, 'plugin_text_domain')); //loads text domain for translation ready
 
46
  add_action('admin_menu', array($this, 'add_sc_menu')); //adds plugin menu in wp-admin
47
  add_action('admin_enqueue_scripts', array($this, 'register_admin_assets')); //registers admin assests such as js and css
48
  add_action('wp_enqueue_scripts', array($this, 'register_frontend_assets')); //registers js and css for frontend
130
  echo "</pre>";
131
  }
132
 
133
+
 
 
 
 
 
 
 
 
134
  /**
135
  * Restores the default
136
  */
inc/backend/save-settings.php CHANGED
@@ -85,8 +85,7 @@ $apsc_settings['counter_format'] = $counter_format;
85
  $apsc_settings['disable_font_css'] = isset($disable_font_css)?1:0;
86
  $apsc_settings['disable_frontend_css'] = isset($disable_frontend_css)?1:0;
87
  update_option('apsc_settings', $apsc_settings);
88
- $_SESSION['apsc_message'] = __('Settings Saved Successfully','accesspress-social-counter');
89
- wp_redirect(admin_url().'admin.php?page=ap-social-counter');
90
 
91
 
92
 
85
  $apsc_settings['disable_font_css'] = isset($disable_font_css)?1:0;
86
  $apsc_settings['disable_frontend_css'] = isset($disable_frontend_css)?1:0;
87
  update_option('apsc_settings', $apsc_settings);
88
+ wp_redirect(admin_url().'admin.php?page=ap-social-counter&message=1');
 
89
 
90
 
91
 
inc/backend/settings.php CHANGED
@@ -34,7 +34,7 @@ $apsc_settings = $this->apsc_settings;
34
 
35
  <div class="apsc-title"><?php _e('AccessPress Social Counter', 'accesspress-social-counter'); ?></div>
36
  </div>
37
- <?php if(isset($_SESSION['apsc_message'])){?><div class="notice notice-success is-dismissible"><p><?php echo $_SESSION['apsc_message'];unset($_SESSION['apsc_message']);?></p></div><?php }?>
38
  <div class="notice notice-info is-dismissible"> <p><?php _e('Note: Please check the System Status if your server system status meets all the requirement for the plugin before you use the plugin','accesspress-social-counter');?></p></div>
39
 
40
  <div class="notice notice-info is-dismissible">
34
 
35
  <div class="apsc-title"><?php _e('AccessPress Social Counter', 'accesspress-social-counter'); ?></div>
36
  </div>
37
+ <?php if(isset($_GET['message'])){?><div class="notice notice-success is-dismissible"><p><?php echo __('Settings Saved Successfully','accesspress-social-counter');?></p></div><?php }?>
38
  <div class="notice notice-info is-dismissible"> <p><?php _e('Note: Please check the System Status if your server system status meets all the requirement for the plugin before you use the plugin','accesspress-social-counter');?></p></div>
39
 
40
  <div class="notice notice-info is-dismissible">
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social count, social counter, social counters, social media counters, soci
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.0
6
  Tested up to: 4.6
7
- Stable tag: 1.6.4
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
  5. Backend Cache Settings Section
134
 
135
  == Changelog ==
 
 
 
136
  = 1.6.4 =
137
  * Updated Documentation link in how to use section
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.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
133
  5. Backend Cache Settings Section
134
 
135
  == Changelog ==
136
+ = 1.6.5 =
137
+ * Removed session from backend
138
+
139
  = 1.6.4 =
140
  * Updated Documentation link in how to use section
141