Simple Banner - Version 1.2.1

Version Description

  • Rollback use of esc_attr() with banner text for now as it broke all links from showing properly.
Download this release

Release Info

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

Code changes from version 1.2.0 to 1.2.1

Files changed (2) hide show
  1. readme.txt +7 -1
  2. simple-banner.php +3 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: cta, banner, banners, announcement, announcements, notification, bar, bars, free, hello bar, hellobar
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.5
7
- Stable tag: 1.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
  = 1.2.0 =
49
  * Improve code structure for preview banner, add inner html preview. Banner text uses esc_attr().
50
 
@@ -71,6 +74,9 @@ Yes.
71
 
72
  == Upgrade Notice ==
73
 
 
 
 
74
  = 1.2.0 =
75
  You can now preview text in the preview banner up top.
76
 
4
  Tags: cta, banner, banners, announcement, announcements, notification, bar, bars, free, hello bar, hellobar
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9.5
7
+ Stable tag: 1.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
+ = 1.2.1 =
49
+ * Rollback use of esc_attr() with banner text for now as it broke all links from showing properly.
50
+
51
  = 1.2.0 =
52
  * Improve code structure for preview banner, add inner html preview. Banner text uses esc_attr().
53
 
74
 
75
  == Upgrade Notice ==
76
 
77
+ = 1.2.1 =
78
+ Bug fix with links.
79
+
80
  = 1.2.0 =
81
  You can now preview text in the preview banner up top.
82
 
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: 1.2.0
7
  * Author: Ryan Petersen
8
  * Author URI: http://rpetersen29.github.io/
9
  * License: GPL2
10
  *
11
  * @package Simple Banner
12
- * @version 1.2.0
13
  * @author Ryan Petersen <rpetersen.dev@gmail.com>
14
  */
15
 
@@ -52,7 +52,7 @@ function simple_banner_custom_text()
52
  if (get_option('simple_banner_text') != ""){
53
  echo '<script type="text/javascript">jQuery(document).ready(function() {
54
  var bannerSpan = document.getElementById("simple-banner");
55
- bannerSpan.innerHTML = "<div class=' . "simple-banner-text" . '><span>' . esc_attr( get_option('simple_banner_text') ) . '</span></div>"
56
  });
57
  </script>';
58
  }
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: 1.2.1
7
  * Author: Ryan Petersen
8
  * Author URI: http://rpetersen29.github.io/
9
  * License: GPL2
10
  *
11
  * @package Simple Banner
12
+ * @version 1.2.1
13
  * @author Ryan Petersen <rpetersen.dev@gmail.com>
14
  */
15
 
52
  if (get_option('simple_banner_text') != ""){
53
  echo '<script type="text/javascript">jQuery(document).ready(function() {
54
  var bannerSpan = document.getElementById("simple-banner");
55
+ bannerSpan.innerHTML = "<div class=' . "simple-banner-text" . '><span>' . get_option('simple_banner_text') . '</span></div>"
56
  });
57
  </script>';
58
  }