Use Any Font - Version 4.3.5

Version Description

  • Fixed host name lookup issue
  • Added SSL for font upload path
  • Test with 4.3
Download this release

Release Info

Developer dnesscarkey
Plugin Icon 128x128 Use Any Font
Version 4.3.5
Comparing to
See all releases

Code changes from version 4.3.4 to 4.3.5

includes/uaf_font_upload_js.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- $allowedFontFormats = array ('ttf','otf');
3
  $uaf_api_key = get_option('uaf_api_key');
4
 
5
  if (isset($_POST['submit-uaf-font'])){
@@ -124,7 +124,7 @@ $fontsData = json_decode($fontsRawData, true);
124
  <?php
125
 
126
  ?>
127
- <em>Accepted Font Format : <?php echo join(", ",$allowedFontFormats); ?> | Font Size: Upto 10 MB</em><br/>
128
 
129
  </td>
130
  </tr>
@@ -180,7 +180,7 @@ $fontsData = json_decode($fontsRawData, true);
180
  function open_add_font(){
181
  jQuery('#font-upload').toggle('fast');
182
  jQuery("#open_add_font_form").validate();
183
- jQuery( "#fontfile" ).rules( "add", {extension: 'ttf|otf', messages: {extension : 'Only ttf,otf font format accepted.' }});
184
  }
185
  </script>
186
  <br/>
@@ -196,7 +196,7 @@ jQuery('#open_add_font_form')
196
  if(! $formValid.valid()) return false;
197
 
198
  jQuery.ajax( {
199
- url: 'http://dnesscarkey.com/font-convertor/convertor/convert.php',
200
  type: 'POST',
201
  data: new FormData( this ),
202
  processData: false,
1
  <?php
2
+ $allowedFontFormats = array ('ttf','otf','woff');
3
  $uaf_api_key = get_option('uaf_api_key');
4
 
5
  if (isset($_POST['submit-uaf-font'])){
124
  <?php
125
 
126
  ?>
127
+ <em>Accepted Font Format : <?php echo join(", ",$allowedFontFormats); ?> | Font Size: Upto 15 MB</em><br/>
128
 
129
  </td>
130
  </tr>
180
  function open_add_font(){
181
  jQuery('#font-upload').toggle('fast');
182
  jQuery("#open_add_font_form").validate();
183
+ jQuery( "#fontfile" ).rules( "add", {extension: 'ttf|otf|woff', messages: {extension : 'Only ttf,otf,woff font format accepted.' }});
184
  }
185
  </script>
186
  <br/>
196
  if(! $formValid.valid()) return false;
197
 
198
  jQuery.ajax( {
199
+ url: 'https://nexus.websitewelcome.com/~dinesh/font-convertor/convertor/convert.php',
200
  type: 'POST',
201
  data: new FormData( this ),
202
  processData: false,
includes/uaf_font_upload_php.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
- $allowedFontFormats = array ('ttf','otf');
3
- $allowedFontSize = 10;
4
  $wpAllowedMaxSize = wp_max_upload_size();
5
  $wpAllowedMaxSizeToMB = $wpAllowedMaxSize / 1048576 ;
6
  if ($wpAllowedMaxSizeToMB < $allowedFontSize){
1
  <?php
2
+ $allowedFontFormats = array ('ttf','otf','woff');
3
+ $allowedFontSize = 15;
4
  $wpAllowedMaxSize = wp_max_upload_size();
5
  $wpAllowedMaxSizeToMB = $wpAllowedMaxSize / 1048576 ;
6
  if ($wpAllowedMaxSizeToMB < $allowedFontSize){
includes/uaf_header.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  if (isset($_POST['ucf_api_key_submit'])){
3
  $uaf_api_key = trim($_POST['uaf_api_key']);
4
- $api_key_return = wp_remote_get('http://dnesscarkey.com/font-convertor/api/validate_key.php?license_key='.$uaf_api_key);
5
 
6
  if ( is_wp_error( $api_key_return ) ) {
7
  $error_message = $api_key_return->get_error_message();
1
  <?php
2
  if (isset($_POST['ucf_api_key_submit'])){
3
  $uaf_api_key = trim($_POST['uaf_api_key']);
4
+ $api_key_return = wp_remote_get('http://dnesscarkey.com/font-convertor/api/validate_key.php?license_key='.$uaf_api_key, array('timeout'=>300));
5
 
6
  if ( is_wp_error( $api_key_return ) ) {
7
  $error_message = $api_key_return->get_error_message();
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.4'):
88
- update_option('uaf_current_version', '4.3.4');
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.5'):
88
+ update_option('uaf_current_version', '4.3.5');
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.2.2
6
- Stable tag: 4.3.4
7
 
8
  Embed any font in your website
9
 
@@ -20,8 +20,8 @@ Features
20
  * Support all major browsers including IE 6+, Firefox, Chrome, Safari, IOS, Andriod, Opera and more.
21
  * Font conversion within the plugin interface font uploader.
22
  * Use uploaded font directly from Editor
23
- * Supports font format including ttf, otf. The required fonts are converted automatically.
24
- * Accepts font file upto 10 MB.
25
  * Embed fonts using @font-face css. SEO friendly and quick loading.
26
  * Multiple fonts can be used.
27
  * Faster load time as your custom fonts are stored on your own server.
@@ -56,15 +56,15 @@ We don't respond to support tickets created here. Please visit our <a href="http
56
 
57
  = Which font format does plugin accepts ? =
58
 
59
- Currently, ttf, otf font format are accepted.
60
 
61
  = What is the max font file size ? =
62
 
63
- Font file upto 10MB is acceptable. However, we suggest you to use smaller ones as far as possible. The font file size directly affects your site load time.
64
 
65
- = Mentioned 10 MB here but in font upload section it says less. Why ? =
66
 
67
- Ya, our plugin accept upto 10 MB font file but your wordpress installation have limitation for file size. Please check this link to increase it http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/
68
 
69
  = Does it works with multiple fonts ? =
70
 
@@ -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.4 =
113
  * License key trim added.
114
 
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.5
7
 
8
  Embed any font in your website
9
 
20
  * Support all major browsers including IE 6+, Firefox, Chrome, Safari, IOS, Andriod, Opera and more.
21
  * Font conversion within the plugin interface font uploader.
22
  * Use uploaded font directly from Editor
23
+ * Supports font format including ttf, otf, woff. The required fonts are converted automatically.
24
+ * Accepts font file upto 15 MB.
25
  * Embed fonts using @font-face css. SEO friendly and quick loading.
26
  * Multiple fonts can be used.
27
  * Faster load time as your custom fonts are stored on your own server.
56
 
57
  = Which font format does plugin accepts ? =
58
 
59
+ Currently, ttf, otf, woff font format are accepted.
60
 
61
  = What is the max font file size ? =
62
 
63
+ Font file upto 15MB is acceptable. However, we suggest you to use smaller ones as far as possible. The font file size directly affects your site load time.
64
 
65
+ = Mentioned 15 MB here but in font upload section it says less. Why ? =
66
 
67
+ Ya, our plugin accept upto 15 MB font file but your wordpress installation have limitation for file size. Please check this link to increase it http://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/
68
 
69
  = Does it works with multiple fonts ? =
70
 
109
 
110
  == Changelog ==
111
 
112
+ = 4.3.5 =
113
+ * Fixed host name lookup issue
114
+ * Added SSL for font upload path
115
+ * Test with 4.3
116
+
117
  = 4.3.4 =
118
  * License key trim added.
119
 
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.4
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.5
8
  Author URI: http://www.dineshkarki.com.np
9
  */
10