Simple Banner - Version 2.2.2

Version Description

  • Added version number to css and js file to force update on version change.
Download this release

Release Info

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

Code changes from version 2.2.1 to 2.2.2

Files changed (2) hide show
  1. readme.txt +7 -1
  2. simple-banner.php +5 -4
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.1
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.1 =
49
  * Removed addslashes version of text now that message is handled via js.
50
 
@@ -125,6 +128,9 @@ Yes.
125
 
126
  == Upgrade Notice ==
127
 
 
 
 
128
  = 2.2.1 =
129
  Removed addslashes version of text now that message is handled via js.
130
 
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.2
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.2 =
49
+ * Added version number to css and js file to force update on version change.
50
+
51
  = 2.2.1 =
52
  * Removed addslashes version of text now that message is handled via js.
53
 
128
 
129
  == Upgrade Notice ==
130
 
131
+ = 2.2.2 =
132
+ Added version number to css and js file to force update on version change.
133
+
134
  = 2.2.1 =
135
  Removed addslashes version of text now that message is handled via js.
136
 
simple-banner.php CHANGED
@@ -3,20 +3,21 @@
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
 
16
  add_action( 'wp_enqueue_scripts', 'simple_banner' );
17
  function simple_banner() {
18
  // Enqueue the style
19
- wp_register_style('simple-banner-style', plugin_dir_url( __FILE__ ) .'simple-banner.css');
20
  wp_enqueue_style('simple-banner-style');
21
  // Set Script parameters
22
  $script_params = array(
@@ -37,7 +38,7 @@ function simple_banner() {
37
  'site_custom_js' => get_option('site_custom_js')
38
  );
39
  // Enqueue the script
40
- wp_register_script('simple-banner-script', plugin_dir_url( __FILE__ ) . 'simple-banner.js', array( 'jquery' ));
41
  wp_localize_script('simple-banner-script', 'scriptParams', $script_params);
42
  wp_enqueue_script('simple-banner-script');
43
  }
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.2
7
  * Author: Ryan Petersen
8
  * Author URI: http://rpetersen29.github.io/
9
  * License: GPL2
10
  *
11
  * @package Simple Banner
12
+ * @version 2.2.2
13
  * @author Ryan Petersen <rpetersen.dev@gmail.com>
14
  */
15
+ define ('VERSION', '2.2.2');
16
 
17
  add_action( 'wp_enqueue_scripts', 'simple_banner' );
18
  function simple_banner() {
19
  // Enqueue the style
20
+ wp_register_style('simple-banner-style', plugin_dir_url( __FILE__ ) .'simple-banner.css', '', VERSION);
21
  wp_enqueue_style('simple-banner-style');
22
  // Set Script parameters
23
  $script_params = array(
38
  'site_custom_js' => get_option('site_custom_js')
39
  );
40
  // Enqueue the script
41
+ wp_register_script('simple-banner-script', plugin_dir_url( __FILE__ ) . 'simple-banner.js', array( 'jquery' ), VERSION);
42
  wp_localize_script('simple-banner-script', 'scriptParams', $script_params);
43
  wp_enqueue_script('simple-banner-script');
44
  }