Version Description
- Fixed validation for PHP uploader
- Sanitize font name
- Test with 4.3.1
Download this release
Release Info
Developer | dnesscarkey |
Plugin | Use Any Font |
Version | 4.3.6 |
Comparing to | |
See all releases |
Code changes from version 4.3.5 to 4.3.6
- includes/uaf_font_upload_js.php +1 -1
- includes/uaf_font_upload_php.php +2 -2
- plugin_interface.php +2 -2
- readme.txt +7 -2
- use-any-font.php +1 -1
includes/uaf_font_upload_js.php
CHANGED
@@ -68,7 +68,7 @@ if (isset($_POST['submit-uaf-font'])){
|
|
68 |
$fontsData = array();
|
69 |
endif;
|
70 |
|
71 |
-
$fontsData[date('ymdhis')] = array('font_name' => $_POST['font_name'], 'font_path' => $fontNameToStoreWithUrl);
|
72 |
$updateFontData = json_encode($fontsData);
|
73 |
update_option('uaf_font_data',$updateFontData);
|
74 |
uaf_write_css();
|
68 |
$fontsData = array();
|
69 |
endif;
|
70 |
|
71 |
+
$fontsData[date('ymdhis')] = array('font_name' => sanitize_title($_POST['font_name']), 'font_path' => $fontNameToStoreWithUrl);
|
72 |
$updateFontData = json_encode($fontsData);
|
73 |
update_option('uaf_font_data',$updateFontData);
|
74 |
uaf_write_css();
|
includes/uaf_font_upload_php.php
CHANGED
@@ -96,7 +96,7 @@ if (isset($_POST['submit-uaf-font'])){
|
|
96 |
$fontsData = array();
|
97 |
endif;
|
98 |
|
99 |
-
$fontsData[date('ymdhis')] = array('font_name' => $_POST['font_name'], 'font_path' => $fontNameToStoreWithUrl);
|
100 |
$updateFontData = json_encode($fontsData);
|
101 |
update_option('uaf_font_data',$updateFontData);
|
102 |
uaf_write_css();
|
@@ -208,7 +208,7 @@ $fontsData = json_decode($fontsRawData, true);
|
|
208 |
function open_add_font(){
|
209 |
jQuery('#font-upload').toggle('fast');
|
210 |
jQuery("#open_add_font_form").validate();
|
211 |
-
jQuery( "#font_file" ).rules( "add", {extension: 'ttf|otf', messages: {extension : 'Only ttf,otf font format accepted.' }});
|
212 |
}
|
213 |
</script>
|
214 |
<br/>
|
96 |
$fontsData = array();
|
97 |
endif;
|
98 |
|
99 |
+
$fontsData[date('ymdhis')] = array('font_name' => sanitize_title($_POST['font_name']), 'font_path' => $fontNameToStoreWithUrl);
|
100 |
$updateFontData = json_encode($fontsData);
|
101 |
update_option('uaf_font_data',$updateFontData);
|
102 |
uaf_write_css();
|
208 |
function open_add_font(){
|
209 |
jQuery('#font-upload').toggle('fast');
|
210 |
jQuery("#open_add_font_form").validate();
|
211 |
+
jQuery( "#font_file" ).rules( "add", {extension: 'ttf|otf|woff', messages: {extension : 'Only ttf,otf font format accepted.' }});
|
212 |
}
|
213 |
</script>
|
214 |
<br/>
|
plugin_interface.php
CHANGED
@@ -84,8 +84,8 @@ function uaf_activate(){
|
|
84 |
|
85 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
86 |
$uaf_version_check = get_option('uaf_current_version');
|
87 |
-
if ($uaf_version_check != '4.3.
|
88 |
-
update_option('uaf_current_version', '4.3.
|
89 |
if ($uaf_version_check < 4.0):
|
90 |
uaf_create_folder();
|
91 |
uaf_move_file_to_newPath();
|
84 |
|
85 |
function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
|
86 |
$uaf_version_check = get_option('uaf_current_version');
|
87 |
+
if ($uaf_version_check != '4.3.6'):
|
88 |
+
update_option('uaf_current_version', '4.3.6');
|
89 |
if ($uaf_version_check < 4.0):
|
90 |
uaf_create_folder();
|
91 |
uaf_move_file_to_newPath();
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: dnesscarkey
|
3 |
Tags: use any font, any font, embed any font, font embed, font uploader, css3 font embed, @font-face embed, font conversion, webfont, ttf, opentype, custom fonts
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 4.3
|
6 |
-
Stable tag: 4.3.
|
7 |
|
8 |
Embed any font in your website
|
9 |
|
@@ -109,6 +109,11 @@ You can check our <a href="http://dineshkarki.com.np/forums/forum/use-any-fonts"
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
112 |
= 4.3.5 =
|
113 |
* Fixed host name lookup issue
|
114 |
* Added SSL for font upload path
|
2 |
Contributors: dnesscarkey
|
3 |
Tags: use any font, any font, embed any font, font embed, font uploader, css3 font embed, @font-face embed, font conversion, webfont, ttf, opentype, custom fonts
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 4.3.1
|
6 |
+
Stable tag: 4.3.6
|
7 |
|
8 |
Embed any font in your website
|
9 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 4.3.6 =
|
113 |
+
* Fixed validation for PHP uploader
|
114 |
+
* Sanitize font name
|
115 |
+
* Test with 4.3.1
|
116 |
+
|
117 |
= 4.3.5 =
|
118 |
* Fixed host name lookup issue
|
119 |
* Added SSL for font upload path
|
use-any-font.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Use Any Font
|
|
4 |
Plugin URI: http://dineshkarki.com.np/use-any-font
|
5 |
Description: Embed any font in your website
|
6 |
Author: Dinesh Karki
|
7 |
-
Version: 4.3.
|
8 |
Author URI: http://www.dineshkarki.com.np
|
9 |
*/
|
10 |
|
4 |
Plugin URI: http://dineshkarki.com.np/use-any-font
|
5 |
Description: Embed any font in your website
|
6 |
Author: Dinesh Karki
|
7 |
+
Version: 4.3.6
|
8 |
Author URI: http://www.dineshkarki.com.np
|
9 |
*/
|
10 |
|