Version Description
- Fixed Divi Multi Variation Select Issue.
- Fixed Strong & b using dash issue.
Download this release
Release Info
Developer | dnesscarkey |
Plugin | Use Any Font |
Version | 6.2.93 |
Comparing to | |
See all releases |
Code changes from version 6.2.92 to 6.2.93
- includes/functions/uaf_editor_functions.php +10 -1
- includes/functions/uaf_font_functions.php +1 -1
- includes/uaf_config.php +1 -1
- readme.txt +5 -1
- use-any-font.php +1 -1
includes/functions/uaf_editor_functions.php
CHANGED
@@ -31,10 +31,19 @@ add_filter('et_websafe_fonts', 'uaf_send_fonts_divi_list',10,2);
|
|
31 |
function uaf_send_fonts_divi_list($fonts){
|
32 |
$fontsData = uaf_group_fontdata_by_fontname(uaf_get_uploaded_font_data());
|
33 |
$fonts_uaf = array();
|
|
|
34 |
if (!empty($fontsData)):
|
35 |
foreach ($fontsData as $fontName=>$fontData):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
$fonts_uaf[$fontName] = array(
|
37 |
-
'styles' => '
|
38 |
'character_set' => 'cyrillic,greek,latin',
|
39 |
'type' => 'serif'
|
40 |
);
|
31 |
function uaf_send_fonts_divi_list($fonts){
|
32 |
$fontsData = uaf_group_fontdata_by_fontname(uaf_get_uploaded_font_data());
|
33 |
$fonts_uaf = array();
|
34 |
+
|
35 |
if (!empty($fontsData)):
|
36 |
foreach ($fontsData as $fontName=>$fontData):
|
37 |
+
$variationStyles = array();
|
38 |
+
foreach ($fontData as $fontVariationKey => $fontVariationData){
|
39 |
+
if (array_key_exists('font_weight',$fontVariationData)){
|
40 |
+
$variationStyles[] = $fontVariationData['font_weight'];
|
41 |
+
} else {
|
42 |
+
$variationStyles[] = '400';
|
43 |
+
}
|
44 |
+
}
|
45 |
$fonts_uaf[$fontName] = array(
|
46 |
+
'styles' => join(',',$variationStyles),
|
47 |
'character_set' => 'cyrillic,greek,latin',
|
48 |
'type' => 'serif'
|
49 |
);
|
includes/functions/uaf_font_functions.php
CHANGED
@@ -282,7 +282,7 @@ function uaf_get_language_selector(){
|
|
282 |
|
283 |
function uaf_save_font_assign(){
|
284 |
$font_key = sanitize_key($_POST['font_key']);
|
285 |
-
$elements = array_map('
|
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 |
+
$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();
|
includes/uaf_config.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
3 |
|
4 |
-
$GLOBALS['uaf_current_version'] = '6.2.
|
5 |
|
6 |
|
7 |
$GLOBALS['uaf_fix_settings'] = array(
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
3 |
|
4 |
+
$GLOBALS['uaf_current_version'] = '6.2.93';
|
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: 6.0
|
6 |
-
Stable tag: 6.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 |
|
@@ -148,6 +148,10 @@ Please do write us after integration and we will add it in our supported list.
|
|
148 |
|
149 |
== Changelog ==
|
150 |
|
|
|
|
|
|
|
|
|
151 |
= 6.2.92 =
|
152 |
* Fixed language select issue.
|
153 |
|
3 |
Tags: custom fonts, font embed, font uploader, typography, install font
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 6.0
|
6 |
+
Stable tag: 6.2.93
|
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 |
|
148 |
|
149 |
== Changelog ==
|
150 |
|
151 |
+
= 6.2.93 =
|
152 |
+
* Fixed Divi Multi Variation Select Issue.
|
153 |
+
* Fixed Strong & b using dash issue.
|
154 |
+
|
155 |
= 6.2.92 =
|
156 |
* Fixed language select issue.
|
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.
|
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.93
|
9 |
Author URI: https://dineshkarki.com.np/use-any-font
|
10 |
*/
|
11 |
|