MouseWheel Smooth Scroll - Version 5.7

Version Description

  • tested on WP 5.8
  • security improvements
Download this release

Release Info

Developer kubiq
Plugin Icon 128x128 MouseWheel Smooth Scroll
Version 5.7
Comparing to
See all releases

Code changes from version 5.6 to 5.7

Files changed (2) hide show
  1. mousewheel-smooth-scroll.php +9 -6
  2. readme.txt +6 -2
mousewheel-smooth-scroll.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MouseWheel Smooth Scroll
4
  Plugin URI: https://kubiq.sk
5
  Description: MouseWheel smooth scrolling for your WordPress website
6
- Version: 5.6
7
  Author: KubiQ
8
  Author URI: https://kubiq.sk
9
  Text Domain: wpmss
@@ -137,17 +137,20 @@ class wpmss{
137
  function admin_options_page(){
138
  if( get_current_screen()->id != $this->plugin_admin_page ) return;
139
  $this->tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'general';
140
- if( isset( $_POST['plugin_sent'] ) ){
141
- $this->settings[ $this->tab ] = $_POST;
142
- update_option( 'wpmss_settings', $this->settings );
143
- $this->process_settings();
144
- $this->save_js_config();
 
 
145
  } ?>
146
  <div class="wrap">
147
  <h2><?php _e( 'MouseWheel Smooth Scroll', 'wpmss' ); ?></h2>
148
  <?php if( isset( $_POST['plugin_sent'] ) ) echo '<div id="message" class="below-h2 updated"><p>' . __('Settings saved.') . '</p></div>' ?>
149
  <form method="post" action="<?php admin_url( 'options-general.php?page=' . basename( __FILE__ ) ) ?>">
150
  <input type="hidden" name="plugin_sent" value="1"><?php
 
151
  $this->plugin_admin_tabs( $this->tab );
152
  switch( $this->tab ):
153
  case 'general':
3
  Plugin Name: MouseWheel Smooth Scroll
4
  Plugin URI: https://kubiq.sk
5
  Description: MouseWheel smooth scrolling for your WordPress website
6
+ Version: 5.7
7
  Author: KubiQ
8
  Author URI: https://kubiq.sk
9
  Text Domain: wpmss
137
  function admin_options_page(){
138
  if( get_current_screen()->id != $this->plugin_admin_page ) return;
139
  $this->tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'general';
140
+ if( isset( $_POST['plugin_sent'], $_POST['wpmss_nonce'] ) ){
141
+ if( check_admin_referer( 'wpmss_data', 'wpmss_nonce' ) ){
142
+ $this->settings[ $this->tab ] = $_POST;
143
+ update_option( 'wpmss_settings', $this->settings );
144
+ $this->process_settings();
145
+ $this->save_js_config();
146
+ }
147
  } ?>
148
  <div class="wrap">
149
  <h2><?php _e( 'MouseWheel Smooth Scroll', 'wpmss' ); ?></h2>
150
  <?php if( isset( $_POST['plugin_sent'] ) ) echo '<div id="message" class="below-h2 updated"><p>' . __('Settings saved.') . '</p></div>' ?>
151
  <form method="post" action="<?php admin_url( 'options-general.php?page=' . basename( __FILE__ ) ) ?>">
152
  <input type="hidden" name="plugin_sent" value="1"><?php
153
+ wp_nonce_field( 'wpmss_data', 'wpmss_nonce' );
154
  $this->plugin_admin_tabs( $this->tab );
155
  switch( $this->tab ):
156
  case 'general':
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: KubiQ
3
  Donate link: https://www.paypal.me/jakubnovaksl
4
  Tags: smooth scroll, mousewheel scroll, scrolling
5
  Requires at least: 3.0.1
6
- Tested up to: 5.7
7
- Stable tag: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -26,6 +26,10 @@ Replace basic website scrolling "effect" with nice smooth scroll using mousewhee
26
 
27
  == Changelog ==
28
 
 
 
 
 
29
  = 5.6 =
30
  * tested on WP 5.7
31
 
3
  Donate link: https://www.paypal.me/jakubnovaksl
4
  Tags: smooth scroll, mousewheel scroll, scrolling
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.8
7
+ Stable tag: 5.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
26
 
27
  == Changelog ==
28
 
29
+ = 5.7 =
30
+ * tested on WP 5.8
31
+ * security improvements
32
+
33
  = 5.6 =
34
  * tested on WP 5.7
35