Advanced Custom Fields: Font Awesome Field - Version 4.0.4

Version Description

  • Fixed bug where queries to the FontAwesome API were timing out for some users, causing issues with searching for icons in the backend
Download this release

Release Info

Developer mattkeys
Plugin Icon 128x128 Advanced Custom Fields: Font Awesome Field
Version 4.0.4
Comparing to
See all releases

Code changes from version 4.0.3 to 4.0.4

acf-font-awesome.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Advanced Custom Fields: Font Awesome
5
  Plugin URI: https://wordpress.org/plugins/advanced-custom-fields-font-awesome/
6
  Description: Adds a new 'Font Awesome Icon' field to the popular Advanced Custom Fields plugin.
7
- Version: 4.0.3
8
  Author: Matt Keys
9
  Author URI: http://mattkeys.me/
10
  License: GPLv2 or later
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  }
17
 
18
  if ( ! defined( 'ACFFA_VERSION' ) ) {
19
- define( 'ACFFA_VERSION', '4.0.3' );
20
  }
21
 
22
  if ( ! defined( 'ACFFA_PUBLIC_PATH' ) ) {
4
  Plugin Name: Advanced Custom Fields: Font Awesome
5
  Plugin URI: https://wordpress.org/plugins/advanced-custom-fields-font-awesome/
6
  Description: Adds a new 'Font Awesome Icon' field to the popular Advanced Custom Fields plugin.
7
+ Version: 4.0.4
8
  Author: Matt Keys
9
  Author URI: http://mattkeys.me/
10
  License: GPLv2 or later
16
  }
17
 
18
  if ( ! defined( 'ACFFA_VERSION' ) ) {
19
+ define( 'ACFFA_VERSION', '4.0.4' );
20
  }
21
 
22
  if ( ! defined( 'ACFFA_PUBLIC_PATH' ) ) {
admin/class-ACFFA-Admin.php CHANGED
@@ -813,7 +813,8 @@ class ACFFA_Admin
813
  'Content-Type' => 'application/json',
814
  'Authorization' => 'Bearer ' . $access_token,
815
  ],
816
- 'body' => '{
 
817
  "query" : "query { me { kits { name token status licenseSelected technologySelected version iconUploads { name } } } }"
818
  }'
819
  ] );
813
  'Content-Type' => 'application/json',
814
  'Authorization' => 'Bearer ' . $access_token,
815
  ],
816
+ 'timeout' => 30,
817
+ 'body' => '{
818
  "query" : "query { me { kits { name token status licenseSelected technologySelected version iconUploads { name } } } }"
819
  }'
820
  ] );
assets/inc/class-ACFFA-Loader-6.php CHANGED
@@ -70,7 +70,8 @@ class ACFFA_Loader_6
70
  'Content-Type' => 'application/json',
71
  'Authorization' => 'Bearer ' . $access_token,
72
  ],
73
- 'body' => '{
 
74
  "query" : "query { me { kit (token: \"' . $kit_id . '\") { version licenseSelected iconUploads { name width height path unicode } } } }"
75
  }'
76
  ] );
@@ -119,7 +120,8 @@ class ACFFA_Loader_6
119
  'headers' => [
120
  'Content-Type' => 'application/json',
121
  'Authorization' => 'Bearer ' . $api_key,
122
- ]
 
123
  ] );
124
 
125
  if ( ! is_wp_error( $remote_get ) ) {
@@ -240,6 +242,7 @@ class ACFFA_Loader_6
240
  'headers' => [
241
  'Content-Type' => 'application/json'
242
  ],
 
243
  'body' => '{
244
  "query" : "query { search(version: \"' . $kit_version . '\", query: \"' . $s . '\", first: 100) { id label styles unicode membership { free } } }"
245
  }'
@@ -413,6 +416,7 @@ class ACFFA_Loader_6
413
  'headers' => [
414
  'Content-Type' => 'application/json'
415
  ],
 
416
  'body' => '{
417
  "query" : "query { release(version:\"6.x\") { version } }"
418
  }'
70
  'Content-Type' => 'application/json',
71
  'Authorization' => 'Bearer ' . $access_token,
72
  ],
73
+ 'timeout' => 30,
74
+ 'body' => '{
75
  "query" : "query { me { kit (token: \"' . $kit_id . '\") { version licenseSelected iconUploads { name width height path unicode } } } }"
76
  }'
77
  ] );
120
  'headers' => [
121
  'Content-Type' => 'application/json',
122
  'Authorization' => 'Bearer ' . $api_key,
123
+ ],
124
+ 'timeout' => 30
125
  ] );
126
 
127
  if ( ! is_wp_error( $remote_get ) ) {
242
  'headers' => [
243
  'Content-Type' => 'application/json'
244
  ],
245
+ 'timeout' => 30,
246
  'body' => '{
247
  "query" : "query { search(version: \"' . $kit_version . '\", query: \"' . $s . '\", first: 100) { id label styles unicode membership { free } } }"
248
  }'
416
  'headers' => [
417
  'Content-Type' => 'application/json'
418
  ],
419
+ 'timeout' => 30,
420
  'body' => '{
421
  "query" : "query { release(version:\"6.x\") { version } }"
422
  }'
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: mattkeys
4
  Tags: Advanced Custom Fields, ACF, Font Awesome, FontAwesome
5
  Requires at least: 3.5
6
  Tested up to: 6.0
7
- Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -82,6 +82,9 @@ This notification message is filterable so you can customize it to better repres
82
 
83
  == Changelog ==
84
 
 
 
 
85
  = 4.0.3 =
86
  * Automatically refresh 4.x and 5.x icon caches when saving the settings
87
  * Additional strings for translation
@@ -236,6 +239,9 @@ This notification message is filterable so you can customize it to better repres
236
 
237
  == Upgrade Notice ==
238
 
 
 
 
239
  = 4.0.3 =
240
  * Automatically refresh 4.x and 5.x icon caches when saving the settings
241
  * Additional strings for translation
4
  Tags: Advanced Custom Fields, ACF, Font Awesome, FontAwesome
5
  Requires at least: 3.5
6
  Tested up to: 6.0
7
+ Stable tag: 4.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
82
 
83
  == Changelog ==
84
 
85
+ = 4.0.4 =
86
+ * Fixed bug where queries to the FontAwesome API were timing out for some users, causing issues with searching for icons in the backend
87
+
88
  = 4.0.3 =
89
  * Automatically refresh 4.x and 5.x icon caches when saving the settings
90
  * Additional strings for translation
239
 
240
  == Upgrade Notice ==
241
 
242
+ = 4.0.4 =
243
+ * Fixed bug where queries to the FontAwesome API were timing out for some users, causing issues with searching for icons in the backend
244
+
245
  = 4.0.3 =
246
  * Automatically refresh 4.x and 5.x icon caches when saving the settings
247
  * Additional strings for translation