Simple Banner - Version 2.2.1

Version Description

  • Removed addslashes version of text now that message is handled via js.
Download this release

Release Info

Developer rpetersen29
Plugin Icon 128x128 Simple Banner
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2.0 to 2.2.1

Files changed (3) hide show
  1. readme.txt +7 -1
  2. simple-banner.js +1 -1
  3. simple-banner.php +2 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/rpetersenDev
4
  Tags: banner, banners, simple, announcement, announcements, cta, notification, bar, bars, free, hello bar, hellobar, pro
5
  Requires at least: 3.0.1
6
  Tested up to: 5.3.2
7
- Stable tag: 2.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -45,6 +45,9 @@ Yes.
45
 
46
  == Changelog ==
47
 
 
 
 
48
  = 2.2.0 =
49
  * Optimized scripts for loading banner, added debug mode for troubleshooting.
50
 
@@ -122,6 +125,9 @@ Yes.
122
 
123
  == Upgrade Notice ==
124
 
 
 
 
125
  = 2.2.0 =
126
  Optimized scripts for loading banner, added debug mode for troubleshooting.
127
 
4
  Tags: banner, banners, simple, announcement, announcements, cta, notification, bar, bars, free, hello bar, hellobar, pro
5
  Requires at least: 3.0.1
6
  Tested up to: 5.3.2
7
+ Stable tag: 2.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
45
 
46
  == Changelog ==
47
 
48
+ = 2.2.1 =
49
+ * Removed addslashes version of text now that message is handled via js.
50
+
51
  = 2.2.0 =
52
  * Optimized scripts for loading banner, added debug mode for troubleshooting.
53
 
125
 
126
  == Upgrade Notice ==
127
 
128
+ = 2.2.1 =
129
+ Removed addslashes version of text now that message is handled via js.
130
+
131
  = 2.2.0 =
132
  Optimized scripts for loading banner, added debug mode for troubleshooting.
133
 
simple-banner.js CHANGED
@@ -1,7 +1,7 @@
1
  jQuery(document).ready(function ($) {
2
  if (scriptParams.simple_banner_text != "") {
3
  if (!scriptParams.pro_version_enabled || (scriptParams.pro_version_enabled && !scriptParams.in_array)) {
4
- $('<div id="simple-banner" class="simple-banner"><div class="simple-banner-text"><span>' + scriptParams.addslashes_simple_banner_text + '</span></div></div>')
5
  .prependTo('body');
6
 
7
  var bodyPaddingLeft = $('body').css('padding-left')
1
  jQuery(document).ready(function ($) {
2
  if (scriptParams.simple_banner_text != "") {
3
  if (!scriptParams.pro_version_enabled || (scriptParams.pro_version_enabled && !scriptParams.in_array)) {
4
+ $('<div id="simple-banner" class="simple-banner"><div class="simple-banner-text"><span>' + scriptParams.simple_banner_text + '</span></div></div>')
5
  .prependTo('body');
6
 
7
  var bodyPaddingLeft = $('body').css('padding-left')
simple-banner.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Simple Banner
4
  * Plugin URI: https://github.com/rpetersen29/simple-banner
5
  * Description: Display a simple banner at the top of your website.
6
- * Version: 2.2.0
7
  * Author: Ryan Petersen
8
  * Author URI: http://rpetersen29.github.io/
9
  * License: GPL2
10
  *
11
  * @package Simple Banner
12
- * @version 2.2.0
13
  * @author Ryan Petersen <rpetersen.dev@gmail.com>
14
  */
15
 
@@ -22,7 +22,6 @@ function simple_banner() {
22
  $script_params = array(
23
  // script specific parameters
24
  'simple_banner_text' => get_option('simple_banner_text'),
25
- 'addslashes_simple_banner_text' => addslashes( get_option('simple_banner_text') ),
26
  'pro_version_enabled' => get_option('pro_version_enabled'),
27
  'in_array' => in_array(get_the_ID(), explode(",", get_option('disabled_pages_array'))),
28
  // debug specific parameters
3
  * Plugin Name: Simple Banner
4
  * Plugin URI: https://github.com/rpetersen29/simple-banner
5
  * Description: Display a simple banner at the top of your website.
6
+ * Version: 2.2.1
7
  * Author: Ryan Petersen
8
  * Author URI: http://rpetersen29.github.io/
9
  * License: GPL2
10
  *
11
  * @package Simple Banner
12
+ * @version 2.2.1
13
  * @author Ryan Petersen <rpetersen.dev@gmail.com>
14
  */
15
 
22
  $script_params = array(
23
  // script specific parameters
24
  'simple_banner_text' => get_option('simple_banner_text'),
 
25
  'pro_version_enabled' => get_option('pro_version_enabled'),
26
  'in_array' => in_array(get_the_ID(), explode(",", get_option('disabled_pages_array'))),
27
  // debug specific parameters