Skip to content

Commit 5022dfb

Browse files
committed
AUI v0.2.37 & FA v1.1.8
1 parent 6b3021e commit 5022dfb

8 files changed

Lines changed: 115 additions & 38 deletions

File tree

vendor/ayecode/wp-ayecode-ui/ayecode-ui-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
add_action('after_setup_theme', function () {
1717
global $ayecode_ui_version,$ayecode_ui_file_key;
18-
$this_version = "0.2.36";
18+
$this_version = "0.2.37";
1919
if(empty($ayecode_ui_version) || version_compare($this_version , $ayecode_ui_version, '>')){
2020
$ayecode_ui_version = $this_version ;
2121
$ayecode_ui_file_key = wp_hash( __FILE__ );

vendor/ayecode/wp-ayecode-ui/change-log.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
= 0.2.37 - 2025-06-12 =
2+
* Prevent running a query on every page load when not required - CHANGED
3+
14
= 0.2.36 - 2025-05-01 =
25
* WP 6.8 changed editor params and scroll page detector not working for fixed menu items color change - FIXED
36

vendor/ayecode/wp-ayecode-ui/example-plugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
Plugin Name: AyeCode UI
44
Plugin URI: https://ayecode.io/
55
Description: This is an example plugin to test AyeCode UI Quickly.
6-
Version: 0.2.36
6+
Version: 0.2.37
77
Author: AyeCode Ltd
88
Author URI: https://userswp.io
99
License: GPL-2.0+
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
1111
Text Domain: ayecode-ui
1212
Domain Path: /languages
13-
Requires at least: 4.9
14-
Tested up to: 6.7
13+
Requires at least: 5.0
14+
Tested up to: 6.8
1515
*/
1616

1717
// If this file is called directly, abort.

vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class AyeCode_UI_Settings {
3535
*
3636
* @var string
3737
*/
38-
public $version = '0.2.36';
38+
public $version = '0.2.37';
3939

4040
/**
4141
* Class textdomain.
@@ -855,14 +855,16 @@ public function show_admin_version_notice(){
855855
* @return array The array of settings.
856856
*/
857857
public function get_settings() {
858-
859858
$db_settings = get_option( 'ayecode-ui-settings' );
860859

861-
// Maybe show default version notice
862-
$site_install_date = new DateTime( self::get_site_install_date() );
863-
$switch_over_date = new DateTime("2024-02-01");
864-
if ( empty( $db_settings ) && $site_install_date < $switch_over_date ) {
865-
add_action( 'admin_notices', array( $this, 'show_admin_version_notice' ) );
860+
// Maybe show default version notice
861+
if ( empty( $db_settings ) ) {
862+
$site_install_date = new DateTime( self::get_site_install_date() );
863+
$switch_over_date = new DateTime( "2024-02-01" );
864+
865+
if ( $site_install_date < $switch_over_date ) {
866+
add_action( 'admin_notices', array( $this, 'show_admin_version_notice' ) );
867+
}
866868
}
867869

868870
$js_default = 'core-popper';
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
= 1.1.8 - 2025-05-29 =
2+
* Icons are not loading when Font Awesome Kits is active - FIXED
3+
4+
= 1.1.7 - 2023-12-14 =
5+
* Update textdomain - CHANGED
6+
7+
= 1.1.6 =
8+
* Calling FA in wp_footer can cause issues on frontend - REVERTED
9+
10+
= 1.1.5 =
11+
* Added constant for when pro enabled - ADDED
12+
13+
= 1.1.3 =
14+
* Added JS files for iconpicker and added constant for URL for AyeCode-UI - ADDED
15+
16+
= 1.1.2 =
17+
* Bumped the latest version to 6.3.0 - CHANGED
18+
19+
= 1.1.1 =
20+
* Requires to re-save settings to load locally when option does not exists - FIXED
21+
22+
= 1.1.0 =
23+
* Option added to load FontAwesome locally
24+
25+
= 1.0.15 =
26+
* Font Awesome will now load in the FSE if enable din the backend
27+
28+
= 1.0.14 =
29+
* Warning added for v6 pro requires kit and will now not work if official FA plugin installed
30+
31+
= 1.0.13 =
32+
* RTL language support added
33+
34+
= 1.0.11 =
35+
* Font Awesome Pro now supported
36+
* Font Awesome Kits now supported
37+
38+
= 1.0.10 =
39+
* Now able to pass wp.org theme check

vendor/ayecode/wp-font-awesome-settings/wp-font-awesome-settings.php

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class WP_Font_Awesome_Settings {
3333
*
3434
* @var string
3535
*/
36-
public $version = '1.1.7';
36+
public $version = '1.1.8';
3737

3838
/**
3939
* Class textdomain.
@@ -122,7 +122,7 @@ public function constants(){
122122

123123
}
124124

125-
// Set a constant if pro enbaled
125+
// Set a constant if pro enabled
126126
if ( ! defined( 'FAS_PRO' ) && $this->settings['pro'] ) {
127127
define( 'FAS_PRO', true );
128128
}
@@ -182,14 +182,22 @@ public function init() {
182182
add_filter( 'block_editor_settings_all', array( $this, 'enqueue_editor_styles' ), 10, 2 );
183183
}
184184
} else {
185+
$enqueue = false;
186+
185187
if ( $this->settings['enqueue'] == '' || $this->settings['enqueue'] == 'frontend' ) {
188+
$enqueue = true;
186189
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 5000 );
187190
}
188191

189192
if ( $this->settings['enqueue'] == '' || $this->settings['enqueue'] == 'backend' ) {
193+
$enqueue = true;
190194
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ), 5000 );
191195
add_filter( 'block_editor_settings_all', array( $this, 'enqueue_editor_scripts' ), 10, 2 );
192196
}
197+
198+
if ( $enqueue ) {
199+
add_filter( 'script_loader_tag', array( $this, 'script_loader_tag' ), 20, 3 );
200+
}
193201
}
194202

195203
// remove font awesome if set to do so
@@ -226,10 +234,10 @@ public function enqueue_editor_styles( $editor_settings, $block_editor_context )
226234
*
227235
* @return array
228236
*/
229-
public function enqueue_editor_scripts( $editor_settings, $block_editor_context ){
230-
237+
public function enqueue_editor_scripts( $editor_settings, $block_editor_context ) {
231238
$url = $this->get_url();
232-
$editor_settings['__unstableResolvedAssets']['scripts'] .= "<script src='$url' id='font-awesome-js'></script>";
239+
240+
$editor_settings['__unstableResolvedAssets']['scripts'] .= "<script src='$url' id='font-awesome-js' defer crossorigin='anonymous'></script>";
233241

234242
return $editor_settings;
235243
}
@@ -292,7 +300,7 @@ public function get_url( $shims = false, $local = true ) {
292300
$sub = $this->settings['pro'] ? 'pro' : 'use';
293301
$type = $this->settings['type'];
294302
$version = $this->settings['version'];
295-
$kit_url = $this->settings['kit-url'] ? esc_url( $this->settings['kit-url'] ) : '';
303+
$kit_url = $this->settings['kit-url'] ? sanitize_text_field( $this->settings['kit-url'] ) : '';
296304
$url = '';
297305

298306
if ( $type == 'KIT' && $kit_url ) {
@@ -482,7 +490,7 @@ public function settings_page() {
482490
<span><?php
483491
echo wp_sprintf(
484492
__( 'Requires a free account with Font Awesome. %sGet kit url%s', 'ayecode-connect' ),
485-
'<a rel="noopener noreferrer" target="_blank" href="https://fontawesome.com/kits"><i class="fas fa-external-link-alt"></i>',
493+
'<a rel="noopener noreferrer" target="_blank" href="https://fontawesome.com/kits"><i class="fas fa-external-link-alt"></i> ',
486494
'</a>'
487495
);
488496
?></span>
@@ -1001,6 +1009,31 @@ public function add_generator() {
10011009

10021010
echo '<meta name="generator" content="WP Font Awesome Settings v' . esc_attr( $this->version ) . '"' . ( ! empty( $source[0] ) ? ' data-ac-source="' . esc_attr( $source[0] ) . '"' : '' ) . ' />';
10031011
}
1012+
1013+
/**
1014+
* Add extra parameters to the script tag.
1015+
*
1016+
* Add crossorigin="anonymous" to prevent OpaqueResponseBlocking
1017+
* (NS_BINDING_ABORTED) http error.
1018+
*
1019+
* @since 1.1.8
1020+
*
1021+
* @param string $tag The script tag.
1022+
* @param string $handle The script handle.
1023+
* @param string $src The script url.
1024+
* @return string The script tag.
1025+
*/
1026+
public function script_loader_tag( $tag, $handle, $src ) {
1027+
if ( ( $handle == 'font-awesome' || $handle == 'font-awesome-shims' ) && ( strpos( $src, "kit.fontawesome.com" ) !== false || strpos( $src, ".fontawesome.com/releases/" ) !== false ) ) {
1028+
$tag = preg_replace(
1029+
'/<script[\s]+(.*?)>/',
1030+
'<script defer crossorigin="anonymous" \1>',
1031+
$tag
1032+
);
1033+
}
1034+
1035+
return $tag;
1036+
}
10041037
}
10051038

10061039
/**

vendor/composer/installed.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@
5959
},
6060
{
6161
"name": "ayecode/wp-ayecode-ui",
62-
"version": "0.2.36",
63-
"version_normalized": "0.2.36.0",
62+
"version": "0.2.37",
63+
"version_normalized": "0.2.37.0",
6464
"source": {
6565
"type": "git",
6666
"url": "https://github.com/AyeCode/wp-ayecode-ui.git",
67-
"reference": "4efdfb8d6929d4ed5c9ec7cfbbd78b848d72ccf5"
67+
"reference": "d9e7b59dc0c5dcbf05d5ca680a686f7b76628258"
6868
},
6969
"dist": {
7070
"type": "zip",
71-
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/4efdfb8d6929d4ed5c9ec7cfbbd78b848d72ccf5",
72-
"reference": "4efdfb8d6929d4ed5c9ec7cfbbd78b848d72ccf5",
71+
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/d9e7b59dc0c5dcbf05d5ca680a686f7b76628258",
72+
"reference": "d9e7b59dc0c5dcbf05d5ca680a686f7b76628258",
7373
"shasum": ""
7474
},
75-
"time": "2025-05-01T12:17:07+00:00",
75+
"time": "2025-06-12T13:23:24+00:00",
7676
"type": "library",
7777
"installation-source": "dist",
7878
"autoload": {
@@ -101,7 +101,7 @@
101101
],
102102
"support": {
103103
"issues": "https://github.com/AyeCode/wp-ayecode-ui/issues",
104-
"source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.36"
104+
"source": "https://github.com/AyeCode/wp-ayecode-ui/tree/0.2.37"
105105
},
106106
"install-path": "../ayecode/wp-ayecode-ui"
107107
},
@@ -155,24 +155,24 @@
155155
},
156156
{
157157
"name": "ayecode/wp-font-awesome-settings",
158-
"version": "1.1.7",
159-
"version_normalized": "1.1.7.0",
158+
"version": "1.1.8",
159+
"version_normalized": "1.1.8.0",
160160
"source": {
161161
"type": "git",
162162
"url": "https://github.com/AyeCode/wp-font-awesome-settings.git",
163-
"reference": "f52f48d05ff760eb1e22e747a2d011c669f25ed1"
163+
"reference": "7e294058197360c13f83d925436ae0e4871308f4"
164164
},
165165
"dist": {
166166
"type": "zip",
167-
"url": "https://api.github.com/repos/AyeCode/wp-font-awesome-settings/zipball/f52f48d05ff760eb1e22e747a2d011c669f25ed1",
168-
"reference": "f52f48d05ff760eb1e22e747a2d011c669f25ed1",
167+
"url": "https://api.github.com/repos/AyeCode/wp-font-awesome-settings/zipball/7e294058197360c13f83d925436ae0e4871308f4",
168+
"reference": "7e294058197360c13f83d925436ae0e4871308f4",
169169
"shasum": ""
170170
},
171171
"require": {
172172
"composer/installers": "~1.0",
173173
"php": ">=5.6.0"
174174
},
175-
"time": "2023-12-14T17:12:22+00:00",
175+
"time": "2025-05-29T12:45:05+00:00",
176176
"type": "library",
177177
"installation-source": "dist",
178178
"autoload": {
@@ -200,7 +200,7 @@
200200
],
201201
"support": {
202202
"issues": "https://github.com/AyeCode/wp-font-awesome-settings/issues",
203-
"source": "https://github.com/AyeCode/wp-font-awesome-settings/tree/1.1.7"
203+
"source": "https://github.com/AyeCode/wp-font-awesome-settings/tree/1.1.8"
204204
},
205205
"install-path": "../ayecode/wp-font-awesome-settings"
206206
},

vendor/composer/installed.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
'dev_requirement' => false,
2121
),
2222
'ayecode/wp-ayecode-ui' => array(
23-
'pretty_version' => '0.2.36',
24-
'version' => '0.2.36.0',
25-
'reference' => '4efdfb8d6929d4ed5c9ec7cfbbd78b848d72ccf5',
23+
'pretty_version' => '0.2.37',
24+
'version' => '0.2.37.0',
25+
'reference' => 'd9e7b59dc0c5dcbf05d5ca680a686f7b76628258',
2626
'type' => 'library',
2727
'install_path' => __DIR__ . '/../ayecode/wp-ayecode-ui',
2828
'aliases' => array(),
@@ -38,9 +38,9 @@
3838
'dev_requirement' => false,
3939
),
4040
'ayecode/wp-font-awesome-settings' => array(
41-
'pretty_version' => '1.1.7',
42-
'version' => '1.1.7.0',
43-
'reference' => 'f52f48d05ff760eb1e22e747a2d011c669f25ed1',
41+
'pretty_version' => '1.1.8',
42+
'version' => '1.1.8.0',
43+
'reference' => '7e294058197360c13f83d925436ae0e4871308f4',
4444
'type' => 'library',
4545
'install_path' => __DIR__ . '/../ayecode/wp-font-awesome-settings',
4646
'aliases' => array(),

0 commit comments

Comments
 (0)