Use Any Font - Version 6.2.97

Version Description

  • Fixed custom element assign issue.
Download this release

Release Info

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

Code changes from version 6.2.96 to 6.2.97

includes/functions/uaf_font_functions.php CHANGED
@@ -282,7 +282,13 @@ function uaf_get_language_selector(){
282
 
283
  function uaf_save_font_assign(){
284
  $font_key = sanitize_key($_POST['font_key']);
285
- $elements = array_map('sanitize_text_field', $_POST['elements']);
 
 
 
 
 
 
286
  $custom_elements = trim(sanitize_text_field($_POST['custom_elements']));
287
 
288
  $fontsData = uaf_get_uploaded_font_data();
282
 
283
  function uaf_save_font_assign(){
284
  $font_key = sanitize_key($_POST['font_key']);
285
+
286
+ if (isset($_POST['elements'])) {
287
+ $elements = array_map('sanitize_text_field', $_POST['elements']);
288
+ } else {
289
+ $elements = array();
290
+ }
291
+
292
  $custom_elements = trim(sanitize_text_field($_POST['custom_elements']));
293
 
294
  $fontsData = uaf_get_uploaded_font_data();
includes/uaf_config.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
- $GLOBALS['uaf_current_version'] = '6.2.96';
5
 
6
 
7
  $GLOBALS['uaf_fix_settings'] = array(
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
+ $GLOBALS['uaf_current_version'] = '6.2.97';
5
 
6
 
7
  $GLOBALS['uaf_fix_settings'] = array(
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: dnesscarkey
3
  Tags: custom fonts, font embed, font uploader, typography, install font
4
  Requires at least: 3.0
5
- Tested up to: 6.0.2
6
- Stable tag: 6.2.96
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
 
@@ -149,6 +149,9 @@ Please do write us after integration and we will add it in our supported list.
149
 
150
  == Changelog ==
151
 
 
 
 
152
  = 6.2.96 =
153
  * Added woff2 font upload support
154
 
2
  Contributors: dnesscarkey
3
  Tags: custom fonts, font embed, font uploader, typography, install font
4
  Requires at least: 3.0
5
+ Tested up to: 6.1
6
+ Stable tag: 6.2.97
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
 
149
 
150
  == Changelog ==
151
 
152
+ = 6.2.97 =
153
+ * Fixed custom element assign issue.
154
+
155
  = 6.2.96 =
156
  * Added woff2 font upload support
157
 
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.96
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.97
9
  Author URI: https://dineshkarki.com.np/use-any-font
10
  */
11