Version Description
- More changes to stop scammers.
Download this release
Release Info
Developer | rpetersen29 |
Plugin | Simple Banner |
Version | 2.10.4 |
Comparing to | |
See all releases |
Code changes from version 2.10.3 to 2.10.4
- readme.txt +8 -2
- simple-banner.php +5 -4
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: rpetersen29
|
|
3 |
Donate link: https://www.paypal.me/rpetersenDev
|
4 |
Tags: banner, simple, top, bar, announcement, top bar, topbar, bulletin, notification, notice, cta, free
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.10.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -118,6 +118,9 @@ Set your banner position to <code>relative</code> and try this in 'Website Custo
|
|
118 |
|
119 |
== Changelog ==
|
120 |
|
|
|
|
|
|
|
121 |
= 2.10.3 =
|
122 |
* Change to stop scam security sites from emailing me.
|
123 |
|
@@ -274,6 +277,9 @@ Set your banner position to <code>relative</code> and try this in 'Website Custo
|
|
274 |
|
275 |
== Upgrade Notice ==
|
276 |
|
|
|
|
|
|
|
277 |
= 2.10.3 =
|
278 |
* Change to stop scam security sites from emailing me.
|
279 |
|
3 |
Donate link: https://www.paypal.me/rpetersenDev
|
4 |
Tags: banner, simple, top, bar, announcement, top bar, topbar, bulletin, notification, notice, cta, free
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 5.8
|
7 |
+
Stable tag: 2.10.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
118 |
|
119 |
== Changelog ==
|
120 |
|
121 |
+
= 2.10.4 =
|
122 |
+
* More changes to stop scammers.
|
123 |
+
|
124 |
= 2.10.3 =
|
125 |
* Change to stop scam security sites from emailing me.
|
126 |
|
277 |
|
278 |
== Upgrade Notice ==
|
279 |
|
280 |
+
= 2.10.4 =
|
281 |
+
* More changes to stop scammers.
|
282 |
+
|
283 |
= 2.10.3 =
|
284 |
* Change to stop scam security sites from emailing me.
|
285 |
|
simple-banner.php
CHANGED
@@ -3,16 +3,16 @@
|
|
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.10.
|
7 |
* Author: Ryan Petersen
|
8 |
* Author URI: http://rpetersen29.github.io/
|
9 |
* License: GPL2
|
10 |
*
|
11 |
* @package Simple Banner
|
12 |
-
* @version 2.10.
|
13 |
* @author Ryan Petersen <rpetersen.dev@gmail.com>
|
14 |
*/
|
15 |
-
define ('VERSION', '2.10.
|
16 |
|
17 |
register_activation_hook( __FILE__, 'simple_banner_activate' );
|
18 |
function simple_banner_activate() {
|
@@ -20,7 +20,8 @@ function simple_banner_activate() {
|
|
20 |
}
|
21 |
|
22 |
function get_stripped_option($string) {
|
23 |
-
$
|
|
|
24 |
$stripped_string = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string_value );
|
25 |
|
26 |
return $stripped_string;
|
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.10.4
|
7 |
* Author: Ryan Petersen
|
8 |
* Author URI: http://rpetersen29.github.io/
|
9 |
* License: GPL2
|
10 |
*
|
11 |
* @package Simple Banner
|
12 |
+
* @version 2.10.4
|
13 |
* @author Ryan Petersen <rpetersen.dev@gmail.com>
|
14 |
*/
|
15 |
+
define ('VERSION', '2.10.4');
|
16 |
|
17 |
register_activation_hook( __FILE__, 'simple_banner_activate' );
|
18 |
function simple_banner_activate() {
|
20 |
}
|
21 |
|
22 |
function get_stripped_option($string) {
|
23 |
+
$allowed_html = wp_kses_allowed_html('post');
|
24 |
+
$string_value = wp_kses(get_option( $string ), $allowed_html, []);
|
25 |
$stripped_string = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string_value );
|
26 |
|
27 |
return $stripped_string;
|