Use Any Font - Version 6.2.3

Version Description

  • Added comment for reasin being using Curl
  • Fixed option html issue.
Download this release

Release Info

Developer dnesscarkey
Plugin Icon 128x128 Use Any Font
Version 6.2.3
Comparing to
See all releases

Code changes from version 6.2.2 to 6.2.3

includes/functions/uaf_editor_functions.php CHANGED
@@ -157,7 +157,7 @@ function uaf_astra_customizer_font_list( $value ) {
157
  if (!empty($fontsData)):
158
  echo esc_html('<optgroup label="Use Any Font">');
159
  foreach ($fontsData as $fontName=>$fontData):
160
- echo esc_html('<option value="' .$fontName. '">' . $fontName. '</option>');
161
  endforeach;
162
  endif;
163
  }
@@ -240,6 +240,8 @@ function uaf_presscore_options_custom_fonts($fonts) {
240
  foreach ($fontsData as $key=>$fontName):
241
  $fonts_uaf[$fontName] = $fontName;
242
  endforeach;
 
 
 
243
  endif;
244
- return array_merge($fonts_uaf,$fonts);
245
  }
157
  if (!empty($fontsData)):
158
  echo esc_html('<optgroup label="Use Any Font">');
159
  foreach ($fontsData as $fontName=>$fontData):
160
+ echo '<option value="' .esc_attr($fontName). '">' . esc_html($fontName). '</option>';
161
  endforeach;
162
  endif;
163
  }
240
  foreach ($fontsData as $key=>$fontName):
241
  $fonts_uaf[$fontName] = $fontName;
242
  endforeach;
243
+ return array_merge($fonts_uaf,$fonts);
244
+ else:
245
+ return $fonts;
246
  endif;
 
247
  }
includes/functions/uaf_font_functions.php CHANGED
@@ -107,7 +107,7 @@ function uaf_upload_font_to_server(){
107
  'font_count' => sanitize_key($_POST['font_count'])
108
  );
109
  curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
110
- $convertResponse = curl_exec($ch);
111
  if(curl_errno($ch)) {
112
  $fontUploadResponse['status'] = 'error';
113
  $fontUploadResponse['body'] = 'Error: ' . curl_error($ch);
107
  'font_count' => sanitize_key($_POST['font_count'])
108
  );
109
  curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
110
+ $convertResponse = curl_exec($ch); // Unable to send file to API endpoint in $_FILES using wp_remote_post, so using CURL
111
  if(curl_errno($ch)) {
112
  $fontUploadResponse['status'] = 'error';
113
  $fontUploadResponse['body'] = 'Error: ' . curl_error($ch);
includes/uaf_config.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
- $GLOBALS['uaf_current_version'] = '6.2.2';
5
 
6
 
7
  $GLOBALS['uaf_fix_settings'] = array(
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
+ $GLOBALS['uaf_current_version'] = '6.2.3';
5
 
6
 
7
  $GLOBALS['uaf_fix_settings'] = array(
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: dnesscarkey
3
  Tags: custom fonts, font embed, font uploader, typography, install font
4
  Requires at least: 3.0
5
  Tested up to: 5.9
6
- Stable tag: 6.2.2
7
 
8
  Embed any custom font using font uploader and assign to elements. Upload font in 1 format and other needed formats are auto converted even woff2.
9
 
@@ -143,10 +143,14 @@ Please do write us after integration and we will add it in our supported list.
143
 
144
  == Changelog ==
145
 
146
- = 6.2.1 =
 
 
147
 
 
148
  * Security Fixes.
149
 
 
150
  * Fixed warning notice.
151
  * Fixed only 1 font showing in font list
152
  * Security Fixes.
3
  Tags: custom fonts, font embed, font uploader, typography, install font
4
  Requires at least: 3.0
5
  Tested up to: 5.9
6
+ Stable tag: 6.2.3
7
 
8
  Embed any custom font using font uploader and assign to elements. Upload font in 1 format and other needed formats are auto converted even woff2.
9
 
143
 
144
  == Changelog ==
145
 
146
+ = 6.2.3 =
147
+ * Added comment for reasin being using Curl
148
+ * Fixed option html issue.
149
 
150
+ = 6.2.2 =
151
  * Security Fixes.
152
 
153
+ = 6.2.1 =
154
  * Fixed warning notice.
155
  * Fixed only 1 font showing in font list
156
  * Security Fixes.
use-any-font.php CHANGED
@@ -5,7 +5,7 @@ Plugin Name: Use Any Font
5
  Plugin URI: https://dineshkarki.com.np/use-any-font
6
  Description: Embed any font in your website
7
  Author: Dnesscarkey
8
- Version: 6.2.2
9
  Author URI: https://dineshkarki.com.np/use-any-font
10
  */
11
 
5
  Plugin URI: https://dineshkarki.com.np/use-any-font
6
  Description: Embed any font in your website
7
  Author: Dnesscarkey
8
+ Version: 6.2.3
9
  Author URI: https://dineshkarki.com.np/use-any-font
10
  */
11