Version Description
- Fix font not listing in page builders and themes typography.
Download this release
Release Info
Developer | dnesscarkey |
Plugin | Use Any Font |
Version | 6.0.3 |
Comparing to | |
See all releases |
Code changes from version 6.0.2 to 6.0.3
- includes/functions/uaf_admin_functions.php +8 -0
- includes/functions/uaf_font_functions.php +6 -2
- includes/uaf_config.php +1 -1
- readme.txt +4 -1
- use-any-font.php +4 -3
includes/functions/uaf_admin_functions.php
CHANGED
@@ -114,6 +114,14 @@ function uaf_plugin_initialize(){
|
|
114 |
uaf_get_options();
|
115 |
uaf_trigger_actions();
|
116 |
uaf_check_site_url();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
}
|
118 |
|
119 |
function uaf_max_upload_size_for_php($sendinbytes = false){
|
114 |
uaf_get_options();
|
115 |
uaf_trigger_actions();
|
116 |
uaf_check_site_url();
|
117 |
+
|
118 |
+
include UAF_FILE_PATH.'includes/functions/uaf_editor_functions.php'; // EDITOR FILTERS AND HOOKS
|
119 |
+
}
|
120 |
+
|
121 |
+
function uaf_plugin_activated(){
|
122 |
+
uaf_create_folder();
|
123 |
+
uaf_get_options();
|
124 |
+
uaf_write_css();
|
125 |
}
|
126 |
|
127 |
function uaf_max_upload_size_for_php($sendinbytes = false){
|
includes/functions/uaf_font_functions.php
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
<?php
|
2 |
function uaf_count_uploaded_fonts(){
|
|
|
3 |
$fontsRawData = get_option('uaf_font_data');
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
6 |
}
|
7 |
|
8 |
function uaf_get_uploaded_font_data(){
|
1 |
<?php
|
2 |
function uaf_count_uploaded_fonts(){
|
3 |
+
$count = 0;
|
4 |
$fontsRawData = get_option('uaf_font_data');
|
5 |
+
if (!empty($fontsRawData)){
|
6 |
+
$fontsData = json_decode($fontsRawData, true);
|
7 |
+
$count = count($fontsData);
|
8 |
+
}
|
9 |
+
return $count;
|
10 |
}
|
11 |
|
12 |
function uaf_get_uploaded_font_data(){
|
includes/uaf_config.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
$GLOBALS['uaf_current_version'] = '6.0.
|
4 |
|
5 |
|
6 |
$GLOBALS['uaf_fix_settings'] = array(
|
1 |
<?php
|
2 |
|
3 |
+
$GLOBALS['uaf_current_version'] = '6.0.3';
|
4 |
|
5 |
|
6 |
$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.6
|
6 |
-
Stable tag: 6.0.
|
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,6 +143,9 @@ Please do write us after integration and we will add it in our supported list.
|
|
143 |
|
144 |
== Changelog ==
|
145 |
|
|
|
|
|
|
|
146 |
= 6.0.2 =
|
147 |
* Support for older PHP versions.
|
148 |
|
3 |
Tags: custom fonts, font embed, font uploader, typography, install font
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.6
|
6 |
+
Stable tag: 6.0.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.0.3 =
|
147 |
+
* Fix font not listing in page builders and themes typography.
|
148 |
+
|
149 |
= 6.0.2 =
|
150 |
* Support for older PHP versions.
|
151 |
|
use-any-font.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Use Any Font
|
|
4 |
Plugin URI: https://dineshkarki.com.np/use-any-font
|
5 |
Description: Embed any font in your website
|
6 |
Author: Dnesscarkey
|
7 |
-
Version: 6.0.
|
8 |
Author URI: https://dineshkarki.com.np/use-any-font
|
9 |
*/
|
10 |
|
@@ -14,10 +14,11 @@ include UAF_FILE_PATH.'includes/uaf_config.php';
|
|
14 |
include UAF_FILE_PATH.'includes/functions/uaf_admin_functions.php';
|
15 |
include UAF_FILE_PATH.'includes/functions/uaf_client_functions.php';
|
16 |
include UAF_FILE_PATH.'includes/functions/uaf_font_functions.php';
|
17 |
-
|
18 |
|
19 |
add_action('init', 'uaf_plugin_initialize');
|
20 |
add_action('admin_menu', 'uaf_create_menu');
|
21 |
add_action('admin_enqueue_scripts', 'uaf_admin_assets');
|
22 |
add_action('wp_enqueue_scripts', 'uaf_client_assets');
|
23 |
-
add_action('admin_notices', 'uaf_admin_notices');
|
|
4 |
Plugin URI: https://dineshkarki.com.np/use-any-font
|
5 |
Description: Embed any font in your website
|
6 |
Author: Dnesscarkey
|
7 |
+
Version: 6.0.3
|
8 |
Author URI: https://dineshkarki.com.np/use-any-font
|
9 |
*/
|
10 |
|
14 |
include UAF_FILE_PATH.'includes/functions/uaf_admin_functions.php';
|
15 |
include UAF_FILE_PATH.'includes/functions/uaf_client_functions.php';
|
16 |
include UAF_FILE_PATH.'includes/functions/uaf_font_functions.php';
|
17 |
+
|
18 |
|
19 |
add_action('init', 'uaf_plugin_initialize');
|
20 |
add_action('admin_menu', 'uaf_create_menu');
|
21 |
add_action('admin_enqueue_scripts', 'uaf_admin_assets');
|
22 |
add_action('wp_enqueue_scripts', 'uaf_client_assets');
|
23 |
+
add_action('admin_notices', 'uaf_admin_notices');
|
24 |
+
register_activation_hook( __FILE__, 'uaf_plugin_activated' );
|