Better Font Awesome - Version 1.2.1

Version Description

  • Update get_instance() call to work for older versions of PHP (< 5.3)
Download this release

Release Info

Developer McGuive7
Plugin Icon 128x128 Better Font Awesome
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. better-font-awesome.php +8 -6
  2. readme.txt +9 -1
better-font-awesome.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Better Font Awesome
13
  * Plugin URI: http://wordpress.org/plugins/better-font-awesome
14
  * Description: The ultimate Font Awesome icon plugin for WordPress.
15
- * Version: 1.2.0
16
  * Author: MIGHTYminnow & Mickey Kay
17
  * Author URI: mickey@mickeykaycreative.com
18
  * License: GPLv2+
@@ -129,13 +129,15 @@ class Better_Font_Awesome_Plugin {
129
  *
130
  * @return Better_Font_Awesome The BFA object.
131
  */
132
- public static function get_instance( $args = '' ) {
133
- static $instance = null;
134
- if ( null === $instance ) {
135
- $instance = new static( $args );
 
136
  }
137
 
138
- return $instance;
 
139
  }
140
 
141
  /**
12
  * Plugin Name: Better Font Awesome
13
  * Plugin URI: http://wordpress.org/plugins/better-font-awesome
14
  * Description: The ultimate Font Awesome icon plugin for WordPress.
15
+ * Version: 1.2.1
16
  * Author: MIGHTYminnow & Mickey Kay
17
  * Author URI: mickey@mickeykaycreative.com
18
  * License: GPLv2+
129
  *
130
  * @return Better_Font_Awesome The BFA object.
131
  */
132
+ public static function get_instance( $args = array() ) {
133
+
134
+ // If the single instance hasn't been set, set it now.
135
+ if ( null == self::$instance ) {
136
+ self::$instance = new self( $args );
137
  }
138
 
139
+ return self::$instance;
140
+
141
  }
142
 
143
  /**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: better, font, awesome, icon, icons, bootstrap, fontstrap, cdn, shortcode
4
  Donate link: http://mightyminnow.com
5
  Requires at least: 3.0
6
  Tested up to: 4.3
7
- Stable tag: 1.2.0
8
  License: GPLv2+
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,6 +12,8 @@ The Better Font Awesome plugin for WordPress. Shortcodes, HTML, TinyMCE, various
12
 
13
  == Description ==
14
 
 
 
15
  Better Font Awesome allows you to automatically integrate the latest available version of [Font Awesome](http://fontawesome.io/) into your WordPress project, along with accompanying CSS, shortcodes, and TinyMCE icon shortcode generator.
16
 
17
 
@@ -108,6 +110,9 @@ Better Font Awesome does it's best to load after any existing Font Awesome CSS,
108
 
109
  == Changelog ==
110
 
 
 
 
111
  = 1.2.0 =
112
  * Attach load functionality to after_theme_setup hook to allow themes to filter options
113
  * Update fallback Font Awesome to version 4.3.0
@@ -185,6 +190,9 @@ Better Font Awesome does it's best to load after any existing Font Awesome CSS,
185
 
186
  == Upgrade Notice ==
187
 
 
 
 
188
  = 1.2.0 =
189
  * Attach load functionality to after_theme_setup hook to allow themes to filter options
190
  * Update fallback Font Awesome to version 4.3.0
4
  Donate link: http://mightyminnow.com
5
  Requires at least: 3.0
6
  Tested up to: 4.3
7
+ Stable tag: 1.2.1
8
  License: GPLv2+
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ **Do you find this plugin helpful? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/better-font-awesome).**
16
+
17
  Better Font Awesome allows you to automatically integrate the latest available version of [Font Awesome](http://fontawesome.io/) into your WordPress project, along with accompanying CSS, shortcodes, and TinyMCE icon shortcode generator.
18
 
19
 
110
 
111
  == Changelog ==
112
 
113
+ = 1.2.1 =
114
+ * Update get_instance() call to work for older versions of PHP (< 5.3)
115
+
116
  = 1.2.0 =
117
  * Attach load functionality to after_theme_setup hook to allow themes to filter options
118
  * Update fallback Font Awesome to version 4.3.0
190
 
191
  == Upgrade Notice ==
192
 
193
+ = 1.2.1 =
194
+ * Update get_instance() call to work for older versions of PHP (< 5.3)
195
+
196
  = 1.2.0 =
197
  * Attach load functionality to after_theme_setup hook to allow themes to filter options
198
  * Update fallback Font Awesome to version 4.3.0