Version Description
- Fix WP_Scripts::localize Warning message
Download this release
Release Info
Developer | dnesscarkey |
Plugin | Use Any Font |
Version | 6.0.5 |
Comparing to | |
See all releases |
Code changes from version 6.0.4 to 6.0.5
includes/assets/css/uaf_admin.css
CHANGED
@@ -37,7 +37,7 @@ span.active_key{font-weight:bold; color:#060; padding-right: 20px;}
|
|
37 |
.dcwrap h1{color: #062f4f;}
|
38 |
.dcwrap .button-primary{ background: #04a2c7; border-color:#04a2c7; }
|
39 |
.dcwrap .nav-tab-wrapper{ border-bottom:none; }
|
40 |
-
.dcwrap .tab-content{}
|
41 |
.dcwrap .tab-content table.noborder{ border-collapse: collapse; border:none; }
|
42 |
.dcwrap .nav-tab{ background: #04a2c7; border:none; color: #fff; padding: 8px 16px; border-radius: 5px 5px 0px 0px; margin: 0 0.5em 0 0.5em; font-weight: normal; font-size: 13px;}
|
43 |
.dcwrap .tab-content .leftcontent{ background: #fff; padding: 5px 20px;border-radius: 5px; box-shadow: 0px 0px 10px -7px #000;}
|
37 |
.dcwrap h1{color: #062f4f;}
|
38 |
.dcwrap .button-primary{ background: #04a2c7; border-color:#04a2c7; }
|
39 |
.dcwrap .nav-tab-wrapper{ border-bottom:none; }
|
40 |
+
.dcwrap .tab-content{margin-top:0px !important; display:block !important;}
|
41 |
.dcwrap .tab-content table.noborder{ border-collapse: collapse; border:none; }
|
42 |
.dcwrap .nav-tab{ background: #04a2c7; border:none; color: #fff; padding: 8px 16px; border-radius: 5px 5px 0px 0px; margin: 0 0.5em 0 0.5em; font-weight: normal; font-size: 13px;}
|
43 |
.dcwrap .tab-content .leftcontent{ background: #fff; padding: 5px 20px;border-radius: 5px; box-shadow: 0px 0px 10px -7px #000;}
|
includes/assets/js/uaf_admin.js
CHANGED
@@ -83,7 +83,7 @@ jQuery('document').ready(function(){
|
|
83 |
error: function(jqXHR, textStatus, errorThrown)
|
84 |
{
|
85 |
jQuery('#font_upload_message').attr('class','error');
|
86 |
-
jQuery('#font_upload_message').html('Unexpected Error Occured.');
|
87 |
jQuery('#submit-uaf-font').attr('disabled',false);
|
88 |
}
|
89 |
});
|
83 |
error: function(jqXHR, textStatus, errorThrown)
|
84 |
{
|
85 |
jQuery('#font_upload_message').attr('class','error');
|
86 |
+
jQuery('#font_upload_message').html('Unexpected Error Occured. Please set Use PHP Uploader to Yes from Settings Tab and try again.');
|
87 |
jQuery('#submit-uaf-font').attr('disabled',false);
|
88 |
}
|
89 |
});
|
includes/functions/uaf_admin_functions.php
CHANGED
@@ -16,7 +16,7 @@ function uaf_admin_assets(){
|
|
16 |
add_editor_style($uaf_upload_url.'admin-uaf.css');
|
17 |
|
18 |
wp_register_script('uaf_admin_js', plugins_url('use-any-font/includes/assets/js/uaf_admin.js'), '', $GLOBALS['uaf_current_version'], true);
|
19 |
-
$uaf_server_url =
|
20 |
wp_localize_script( 'uaf_admin_js', 'uaf_server_url', $uaf_server_url );
|
21 |
wp_enqueue_script( 'uaf_admin_js' );
|
22 |
}
|
16 |
add_editor_style($uaf_upload_url.'admin-uaf.css');
|
17 |
|
18 |
wp_register_script('uaf_admin_js', plugins_url('use-any-font/includes/assets/js/uaf_admin.js'), '', $GLOBALS['uaf_current_version'], true);
|
19 |
+
$uaf_server_url = array($GLOBALS['uaf_user_settings']['uaf_server_url']);
|
20 |
wp_localize_script( 'uaf_admin_js', 'uaf_server_url', $uaf_server_url );
|
21 |
wp_enqueue_script( 'uaf_admin_js' );
|
22 |
}
|
includes/functions/uaf_font_functions.php
CHANGED
@@ -181,7 +181,7 @@ function uaf_write_css(){
|
|
181 |
|
182 |
if ($uaf_use_absolute_font_path == 0){ // If user use relative path
|
183 |
$url_parts = parse_url($uaf_upload_url);
|
184 |
-
|
185 |
}
|
186 |
|
187 |
ob_start();
|
181 |
|
182 |
if ($uaf_use_absolute_font_path == 0){ // If user use relative path
|
183 |
$url_parts = parse_url($uaf_upload_url);
|
184 |
+
$uaf_upload_url = "$url_parts[path]";
|
185 |
}
|
186 |
|
187 |
ob_start();
|
includes/uaf_config.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
3 |
|
4 |
-
$GLOBALS['uaf_current_version'] = '6.0.
|
5 |
|
6 |
|
7 |
$GLOBALS['uaf_fix_settings'] = array(
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
3 |
|
4 |
+
$GLOBALS['uaf_current_version'] = '6.0.5';
|
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: 5.
|
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,10 +143,13 @@ Please do write us after integration and we will add it in our supported list.
|
|
143 |
|
144 |
== Changelog ==
|
145 |
|
|
|
|
|
|
|
146 |
= 6.0.4 =
|
147 |
* Fix count warning issue.
|
148 |
|
149 |
-
= 6.0.
|
150 |
* Fix font not listing in page builders and themes typography.
|
151 |
|
152 |
= 6.0.2 =
|
2 |
Contributors: dnesscarkey
|
3 |
Tags: custom fonts, font embed, font uploader, typography, install font
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 5.7
|
6 |
+
Stable tag: 6.0.5
|
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.5 =
|
147 |
+
* Fix WP_Scripts::localize Warning message
|
148 |
+
|
149 |
= 6.0.4 =
|
150 |
* Fix count warning issue.
|
151 |
|
152 |
+
= 6.0.3 =
|
153 |
* Fix font not listing in page builders and themes typography.
|
154 |
|
155 |
= 6.0.2 =
|
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.0.
|
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.0.5
|
9 |
Author URI: https://dineshkarki.com.np/use-any-font
|
10 |
*/
|
11 |
|