From c1bc336481e56d60a1ca013faf5d225f6b8c4e58 Mon Sep 17 00:00:00 2001 From: Mickey Kay Date: Sun, 4 Jun 2017 23:42:02 -0700 Subject: [PATCH] Fix admin notice filter (#11) * Fix admin notice filter * Update version * Fix formatting --- README.md | 2 +- better-font-awesome.php | 4 +-- languages/better-font-awesome.pot | 53 +++++++++++++++++++++++++++++-- package.json | 2 +- readme.txt | 12 +++++-- 5 files changed, 64 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 25960d4..3af6bc7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Donate link:** http://mickeykay.me **Requires at least:** 3.0 **Tested up to:** 4.9 -**Stable tag:** 1.7.0 +**Stable tag:** 1.7.1 **License:** GPLv2+ **License URI:** http://www.gnu.org/licenses/gpl-2.0.html diff --git a/better-font-awesome.php b/better-font-awesome.php index 42c809f..5a5b9ea 100755 --- a/better-font-awesome.php +++ b/better-font-awesome.php @@ -12,7 +12,7 @@ * Plugin Name: Better Font Awesome * Plugin URI: http://wordpress.org/plugins/better-font-awesome * Description: The ultimate Font Awesome icon plugin for WordPress. - * Version: 1.7.0 + * Version: 1.7.1 * Author: Mickey Kay * Author URI: mickeyskay@gmail.com * License: GPLv2+ @@ -287,7 +287,7 @@ private function initialize_options( $option_name ) { private function initialize_better_font_awesome_library( $options ) { // Hide admin notices if setting is checked. - if ( isset( $options['hide_admin_notices'] ) ) { + if ( true == $options['hide_admin_notices'] ) { add_filter( 'bfa_show_errors', '__return_false' ); } diff --git a/languages/better-font-awesome.pot b/languages/better-font-awesome.pot index 7556133..7b624a0 100755 --- a/languages/better-font-awesome.pot +++ b/languages/better-font-awesome.pot @@ -2,10 +2,10 @@ # This file is distributed under the GPLv2+. msgid "" msgstr "" -"Project-Id-Version: Better Font Awesome 1.7.0\n" +"Project-Id-Version: Better Font Awesome 1.7.1\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/better-font-awesome\n" -"POT-Creation-Date: 2017-06-05 05:55:13+00:00\n" +"POT-Creation-Date: 2017-06-05 06:35:02+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -19,6 +19,8 @@ msgid "Better Font Awesome" msgstr "" #: better-font-awesome.php:237 svn/tags/1.7.0/better-font-awesome.php:237 +#: svn/tags/1.7.1/better-font-awesome.php:237 +#: svn/trunk/better-font-awesome.php:237 msgid "" "It appears that Better Font Awesome is missing it's Usage\n" " Font Awesome version 4.x " @@ -1135,6 +1168,8 @@ msgstr "" #: svn/tags/1.6.0/lib/better-font-awesome-library/better-font-awesome-library.php:1079 #: svn/tags/1.7.0/lib/better-font-awesome-library/better-font-awesome-library.php:1079 #: svn/tags/1.7.0/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1077 +#: svn/tags/1.7.1/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1077 +#: svn/trunk/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1077 #: vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1077 msgid "API Error" msgstr "" @@ -1167,6 +1202,8 @@ msgstr "" #: svn/tags/1.6.0/lib/better-font-awesome-library/better-font-awesome-library.php:1081 #: svn/tags/1.7.0/lib/better-font-awesome-library/better-font-awesome-library.php:1081 #: svn/tags/1.7.0/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1079 +#: svn/tags/1.7.1/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1079 +#: svn/trunk/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1079 #: vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1079 msgid "" "The attempt to reach the jsDelivr API server failed with the following " @@ -1201,6 +1238,8 @@ msgstr "" #: svn/tags/1.6.0/lib/better-font-awesome-library/better-font-awesome-library.php:1091 #: svn/tags/1.7.0/lib/better-font-awesome-library/better-font-awesome-library.php:1091 #: svn/tags/1.7.0/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1089 +#: svn/tags/1.7.1/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1089 +#: svn/trunk/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1089 #: vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1089 msgid "Remote CSS Error" msgstr "" @@ -1233,6 +1272,8 @@ msgstr "" #: svn/tags/1.6.0/lib/better-font-awesome-library/better-font-awesome-library.php:1093 #: svn/tags/1.7.0/lib/better-font-awesome-library/better-font-awesome-library.php:1093 #: svn/tags/1.7.0/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1091 +#: svn/tags/1.7.1/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1091 +#: svn/trunk/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1091 #: vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1091 msgid "" "The attempt to fetch the remote Font Awesome stylesheet failed with the " @@ -1268,6 +1309,8 @@ msgstr "" #: svn/tags/1.6.0/lib/better-font-awesome-library/better-font-awesome-library.php:1107 #: svn/tags/1.7.0/lib/better-font-awesome-library/better-font-awesome-library.php:1107 #: svn/tags/1.7.0/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1105 +#: svn/tags/1.7.1/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1105 +#: svn/trunk/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1105 #: vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1105 msgid "Solution" msgstr "" @@ -1299,6 +1342,8 @@ msgstr "" #: svn/tags/1.6.0/lib/better-font-awesome-library/better-font-awesome-library.php:493 #: svn/tags/1.7.0/lib/better-font-awesome-library/better-font-awesome-library.php:493 #: svn/tags/1.7.0/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:491 +#: svn/tags/1.7.1/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:491 +#: svn/trunk/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:491 #: vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:491 msgid "The jsDelivr API servers appear to be temporarily unavailable." msgstr "" @@ -1330,6 +1375,8 @@ msgstr "" #: svn/tags/1.6.0/lib/better-font-awesome-library/better-font-awesome-library.php:1103 #: svn/tags/1.7.0/lib/better-font-awesome-library/better-font-awesome-library.php:1103 #: svn/tags/1.7.0/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1101 +#: svn/tags/1.7.1/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1101 +#: svn/trunk/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1101 #: vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1101 msgid "" "Don't worry! Better Font Awesome will still render using the included " @@ -1350,6 +1397,8 @@ msgstr "" #: svn/tags/1.6.0/lib/better-font-awesome-library/better-font-awesome-library.php:1053 #: svn/tags/1.7.0/lib/better-font-awesome-library/better-font-awesome-library.php:1053 #: svn/tags/1.7.0/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1051 +#: svn/tags/1.7.1/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1051 +#: svn/trunk/vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1051 #: vendor/mickey-kay/better-font-awesome-library/better-font-awesome-library.php:1051 msgid "Insert Icon" msgstr "" diff --git a/package.json b/package.json index 3d02e85..55643db 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "title": "Better Font Awesome", "description": "The best WordPress extension ever made!", - "version": "1.7.0", + "version": "1.7.1", "homepage": "http://wordpress.org/plugins/better-font-awesome", "author": { "name": "MIGHTYminnow Web Studio & School", diff --git a/readme.txt b/readme.txt index c39d066..1d9f816 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: better, font, awesome, icon, icons, bootstrap, fontstrap, cdn, shortcode Donate link: http://mickeykay.me Requires at least: 3.0 Tested up to: 4.9 -Stable tag: 1.7.0 +Stable tag: 1.7.1 License: GPLv2+ License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -111,7 +111,10 @@ Better Font Awesome does it's best to load after any existing Font Awesome CSS, == Changelog == -### 1.7.0 ### += 1.7.1 = +* Fix functionality to hide/show admin notices. + += 1.7.0 = * Update fallback Font Awesome to v4.7.0. * Switch from using git submodules to composer dependency management for core library inclusion. @@ -235,7 +238,10 @@ Better Font Awesome does it's best to load after any existing Font Awesome CSS, == Upgrade Notice == -### 1.7.0 ### += 1.7.1 = +* Fix functionality to hide/show admin notices. + += 1.7.0 = * Update fallback Font Awesome to v4.7.0. * Switch from using git submodules to composer dependency management for core library inclusion.