Simple Banner - Version 2.12.2

Version Description

  • Support for WP 6.1
Download this release

Release Info

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

Code changes from version 2.12.1 to 2.12.2

Files changed (2) hide show
  1. readme.txt +8 -2
  2. simple-banner.php +7 -17
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: 6.0.1
7
- Stable tag: 2.12.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -120,6 +120,9 @@ Set your banner position to <code>relative</code> and try this in 'Website Custo
120
 
121
  == Changelog ==
122
 
 
 
 
123
  = 2.12.1 =
124
  * Bug fix
125
 
@@ -303,6 +306,9 @@ Set your banner position to <code>relative</code> and try this in 'Website Custo
303
 
304
  == Upgrade Notice ==
305
 
 
 
 
306
  = 2.12.1 =
307
  * Bug fix
308
 
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: 6.1
7
+ Stable tag: 2.12.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
120
 
121
  == Changelog ==
122
 
123
+ = 2.12.2 =
124
+ * Support for WP 6.1
125
+
126
  = 2.12.1 =
127
  * Bug fix
128
 
306
 
307
  == Upgrade Notice ==
308
 
309
+ = 2.12.2 =
310
+ * Support for WP 6.1
311
+
312
  = 2.12.1 =
313
  * Bug fix
314
 
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.12.1
7
  * Author: Ryan Petersen
8
  * Author URI: http://rpetersen29.github.io/
9
  * License: GPL2
10
  *
11
  * @package Simple Banner
12
- * @version 2.12.1
13
  * @author Ryan Petersen <rpetersen.dev@gmail.com>
14
  */
15
- define ('SB_VERSION', '2.12.1');
16
 
17
  register_activation_hook( __FILE__, 'simple_banner_activate' );
18
  function simple_banner_activate() {
@@ -238,22 +238,12 @@ function simple_banner_menu() {
238
  }
239
 
240
 
241
- // TODO: Add this check after looking into `unfiltered_html` option
242
- // function get_sanitized_simple_banner_text($string) {
243
- // $string_value = $string;
244
- // if ( current_user_can( 'unfiltered_html' ) ) {
245
- // returnwp_kses_post( $string );
246
- // } else {
247
- // return wp_kses_data( $string );
248
- // }
249
- // }
250
-
251
  //script input sanitization function
252
  function theme_slug_sanitize_js_code($input){
253
  return base64_encode($input);
254
  }
255
-
256
-
257
  //output escape function
258
  function theme_slug_escape_js_output($input){
259
  return esc_textarea( base64_decode($input) );
@@ -410,7 +400,7 @@ function simple_banner_settings_page() {
410
 
411
  <div class="wrap">
412
  <div style="display: flex;justify-content: space-between;">
413
- <h2>Simple Banner Settings</h2>
414
  <a class="button button-primary button-hero" style="font-weight: 700;" href="https://www.paypal.me/rpetersenDev" target="_blank">DONATE</a>
415
  </div>
416
 
@@ -688,7 +678,7 @@ function simple_banner_settings_page() {
688
  font-size: medium;
689
  font-weight: bold;
690
  text-align: center;">
691
- Always make sure you test your banner in mobile views, theme headers often change up their css for mobile.
692
  </div>
693
 
694
  <!-- Pro Features -->
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.12.2
7
  * Author: Ryan Petersen
8
  * Author URI: http://rpetersen29.github.io/
9
  * License: GPL2
10
  *
11
  * @package Simple Banner
12
+ * @version 2.12.2
13
  * @author Ryan Petersen <rpetersen.dev@gmail.com>
14
  */
15
+ define ('SB_VERSION', '2.12.2');
16
 
17
  register_activation_hook( __FILE__, 'simple_banner_activate' );
18
  function simple_banner_activate() {
238
  }
239
 
240
 
 
 
 
 
 
 
 
 
 
 
241
  //script input sanitization function
242
  function theme_slug_sanitize_js_code($input){
243
  return base64_encode($input);
244
  }
245
+
246
+
247
  //output escape function
248
  function theme_slug_escape_js_output($input){
249
  return esc_textarea( base64_decode($input) );
400
 
401
  <div class="wrap">
402
  <div style="display: flex;justify-content: space-between;">
403
+ <h1 style="font-weight: 700;">Simple Banner Settings</h1>
404
  <a class="button button-primary button-hero" style="font-weight: 700;" href="https://www.paypal.me/rpetersenDev" target="_blank">DONATE</a>
405
  </div>
406
 
678
  font-size: medium;
679
  font-weight: bold;
680
  text-align: center;">
681
+ Always make sure you test your banner in mobile views, theme headers often change their css for mobile.
682
  </div>
683
 
684
  <!-- Pro Features -->