Version Description
- Add is_ssl check for Aboslute Font path.
Download this release
Release Info
Developer | dnesscarkey |
Plugin | Use Any Font |
Version | 6.1.3 |
Comparing to | |
See all releases |
Code changes from version 6.1.2 to 6.1.3
- includes/functions/uaf_font_functions.php +4 -2
- includes/uaf_config.php +1 -1
- readme.txt +4 -1
- use-any-font.php +1 -1
includes/functions/uaf_font_functions.php
CHANGED
@@ -176,12 +176,14 @@ function uaf_write_css(){
|
|
176 |
$uaf_upload_path = uaf_path_details();
|
177 |
$uaf_upload_dir = $uaf_upload_path['dir'];
|
178 |
$uaf_upload_url = $uaf_upload_path['url'];
|
179 |
-
//$uaf_upload_url = preg_replace('#^https?:#', '', $uaf_upload_path['url']);
|
180 |
|
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();
|
176 |
$uaf_upload_path = uaf_path_details();
|
177 |
$uaf_upload_dir = $uaf_upload_path['dir'];
|
178 |
$uaf_upload_url = $uaf_upload_path['url'];
|
|
|
179 |
|
|
|
180 |
if ($uaf_use_absolute_font_path == 0){ // If user use relative path
|
181 |
$url_parts = parse_url($uaf_upload_url);
|
182 |
$uaf_upload_url = "$url_parts[path]";
|
183 |
+
} else {
|
184 |
+
if (is_ssl()){
|
185 |
+
$uaf_upload_url = preg_replace('#^https?:#', 'https:', $uaf_upload_path['url']);
|
186 |
+
}
|
187 |
}
|
188 |
|
189 |
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.1.
|
5 |
|
6 |
|
7 |
$GLOBALS['uaf_fix_settings'] = array(
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
3 |
|
4 |
+
$GLOBALS['uaf_current_version'] = '6.1.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.7.1
|
6 |
-
Stable tag: 6.1.
|
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 |
|
@@ -142,6 +142,9 @@ Please do write us after integration and we will add it in our supported list.
|
|
142 |
1. Screenshot #6. Assign fonts to custom elements.
|
143 |
|
144 |
== Changelog ==
|
|
|
|
|
|
|
145 |
= 6.1.2 =
|
146 |
* Fixed Pagely Cache issue. (https://wordpress.org/support/topic/version-6-1-1-causes-fatal-errors-on-pagely-servers/)
|
147 |
|
3 |
Tags: custom fonts, font embed, font uploader, typography, install font
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 5.7.1
|
6 |
+
Stable tag: 6.1.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 |
|
142 |
1. Screenshot #6. Assign fonts to custom elements.
|
143 |
|
144 |
== Changelog ==
|
145 |
+
= 6.1.3 =
|
146 |
+
* Add is_ssl check for Aboslute Font path.
|
147 |
+
|
148 |
= 6.1.2 =
|
149 |
* Fixed Pagely Cache issue. (https://wordpress.org/support/topic/version-6-1-1-causes-fatal-errors-on-pagely-servers/)
|
150 |
|
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.1.
|
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.1.3
|
9 |
Author URI: https://dineshkarki.com.np/use-any-font
|
10 |
*/
|
11 |
|