Version Description
- Added fixes for older versions of PHP (Titan Framework not found, unexpected "[")
Download this release
Release Info
Developer | McGuive7 |
Plugin | Better Font Awesome |
Version | 0.9.1 |
Comparing to | |
See all releases |
Code changes from version 0.9.0 to 0.9.1
- better-font-awesome.php +5 -12
- readme.txt +7 -1
better-font-awesome.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Better Font Awesome
|
4 |
* Plugin URI: http://wordpress.org/plugins/better-font-awesome
|
5 |
* Description: The better Font Awesome icon plugin for Wordpress.
|
6 |
-
* Version: 0.9.
|
7 |
* Author: Mickey Kay
|
8 |
* Author URI: mickey@mickeykaycreative.com
|
9 |
* License: GPLv2+
|
@@ -29,14 +29,6 @@
|
|
29 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
30 |
*/
|
31 |
|
32 |
-
/**
|
33 |
-
|
34 |
-
TODO:
|
35 |
-
- Make sure all icons are showing
|
36 |
-
- Make backwards compatible for all shortcodes including "FA Icons", "FA More", and "FA Shortcodes"
|
37 |
-
|
38 |
-
**/
|
39 |
-
|
40 |
/*--------------------------------------------*
|
41 |
* Titan Framework
|
42 |
*--------------------------------------------*/
|
@@ -58,7 +50,7 @@ $activePlugins = get_option('active_plugins');
|
|
58 |
if ( is_array( $activePlugins ) ) {
|
59 |
foreach ( $activePlugins as $plugin ) {
|
60 |
if ( is_string( $plugin ) ) {
|
61 |
-
if ( stripos( $plugin, '/
|
62 |
$useEmbeddedFramework = false;
|
63 |
break;
|
64 |
}
|
@@ -67,7 +59,7 @@ if ( is_array( $activePlugins ) ) {
|
|
67 |
}
|
68 |
// Use the embedded Titan Framework
|
69 |
if ( $useEmbeddedFramework && ! class_exists( 'TitanFramework' ) ) {
|
70 |
-
require_once( plugin_dir_path( __FILE__ ) . '
|
71 |
}
|
72 |
|
73 |
/**
|
@@ -155,7 +147,8 @@ class BetterFontAwesome {
|
|
155 |
*/
|
156 |
function setup_cdn_data() {
|
157 |
$remote_data = wp_remote_get( 'http://api.jsdelivr.com/v1/bootstrap/libraries/font-awesome/' );
|
158 |
-
$
|
|
|
159 |
}
|
160 |
|
161 |
/*
|
3 |
* Plugin Name: Better Font Awesome
|
4 |
* Plugin URI: http://wordpress.org/plugins/better-font-awesome
|
5 |
* Description: The better Font Awesome icon plugin for Wordpress.
|
6 |
+
* Version: 0.9.1
|
7 |
* Author: Mickey Kay
|
8 |
* Author URI: mickey@mickeykaycreative.com
|
9 |
* License: GPLv2+
|
29 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
30 |
*/
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
/*--------------------------------------------*
|
33 |
* Titan Framework
|
34 |
*--------------------------------------------*/
|
50 |
if ( is_array( $activePlugins ) ) {
|
51 |
foreach ( $activePlugins as $plugin ) {
|
52 |
if ( is_string( $plugin ) ) {
|
53 |
+
if ( stripos( $plugin, '/Titan-Framework.php' ) !== false ) {
|
54 |
$useEmbeddedFramework = false;
|
55 |
break;
|
56 |
}
|
59 |
}
|
60 |
// Use the embedded Titan Framework
|
61 |
if ( $useEmbeddedFramework && ! class_exists( 'TitanFramework' ) ) {
|
62 |
+
require_once( plugin_dir_path( __FILE__ ) . 'Titan-Framework/titan-framework.php' );
|
63 |
}
|
64 |
|
65 |
/**
|
147 |
*/
|
148 |
function setup_cdn_data() {
|
149 |
$remote_data = wp_remote_get( 'http://api.jsdelivr.com/v1/bootstrap/libraries/font-awesome/' );
|
150 |
+
$decoded_data = json_decode( wp_remote_retrieve_body( $remote_data ) );
|
151 |
+
$this->cdn_data = $decoded_data[0];
|
152 |
}
|
153 |
|
154 |
/*
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: better, font, awesome, icon, bootstrap, fontstrap, cdn, shortcode
|
|
4 |
Donate link: http://mightyminnow.com
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.8.1
|
7 |
-
Stable tag: 0.9.
|
8 |
License: GPLv2+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -98,11 +98,17 @@ Better Font Awesome does it's best to load after any existing Font Awesome CSS,
|
|
98 |
|
99 |
== Changelog ==
|
100 |
|
|
|
|
|
|
|
101 |
= 0.9.0 =
|
102 |
* First release!
|
103 |
|
104 |
|
105 |
== Upgrade Notice ==
|
106 |
|
|
|
|
|
|
|
107 |
= 0.9.0 =
|
108 |
* First release!
|
4 |
Donate link: http://mightyminnow.com
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.8.1
|
7 |
+
Stable tag: 0.9.1
|
8 |
License: GPLv2+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
98 |
|
99 |
== Changelog ==
|
100 |
|
101 |
+
= 0.9.1 =
|
102 |
+
* Added fixes for older versions of PHP (Titan Framework not found, unexpected "[")
|
103 |
+
|
104 |
= 0.9.0 =
|
105 |
* First release!
|
106 |
|
107 |
|
108 |
== Upgrade Notice ==
|
109 |
|
110 |
+
= 0.9.1 =
|
111 |
+
* Added fixes for older versions of PHP (Titan Framework not found, unexpected "[")
|
112 |
+
|
113 |
= 0.9.0 =
|
114 |
* First release!
|