Use Any Font - Version 5.1

Version Description

  • Fix url issue.
Download this release

Release Info

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

Code changes from version 5.0 to 5.1

includes/uaf_font_upload_php.php CHANGED
@@ -32,6 +32,7 @@ if (isset($_POST['submit-uaf-font'])){
32
  'fontfile' => "@".$_FILES['font_file']['tmp_name'],
33
  'fontfileext' => pathinfo($_FILES['font_file']['name'], PATHINFO_EXTENSION),
34
  'api_key' => $uaf_api_key,
 
35
  'font_count' => $_POST['font_count']
36
  );
37
  curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
@@ -165,7 +166,14 @@ $fontsData = json_decode($fontsRawData, true);
165
  <td>&nbsp;
166
 
167
  </td>
168
- <td><input type="hidden" name="font_count" value="<?php echo count($fontsData); ?>" /><input type="submit" name="submit-uaf-font" class="button-primary" value="Upload" />
 
 
 
 
 
 
 
169
  <p>By clicking on Upload, you confirm that you have rights to use this font.</p>
170
  </td>
171
  </tr>
32
  'fontfile' => "@".$_FILES['font_file']['tmp_name'],
33
  'fontfileext' => pathinfo($_FILES['font_file']['name'], PATHINFO_EXTENSION),
34
  'api_key' => $uaf_api_key,
35
+ 'url' => $_POST['url'],
36
  'font_count' => $_POST['font_count']
37
  );
38
  curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
166
  <td>&nbsp;
167
 
168
  </td>
169
+ <td>
170
+
171
+ <input type="hidden" name="url" value="<?php echo home_url(); ?>" />
172
+ <input type="hidden" name="api_key" value="<?php echo $uaf_api_key; ?>" />
173
+ <input type="hidden" name="font_count" value="<?php echo count($fontsData); ?>" />
174
+ <input type="submit" name="submit-uaf-font" class="button-primary" value="Upload" />
175
+
176
+
177
  <p>By clicking on Upload, you confirm that you have rights to use this font.</p>
178
  </td>
179
  </tr>
plugin_interface.php CHANGED
@@ -41,12 +41,13 @@ add_action("admin_print_styles", 'adminCsslibs');
41
  add_action('wp_enqueue_scripts', 'uaf_client_css');
42
  add_action('plugins_loaded', 'uaf_update_check');
43
  add_action('init', 'uaf_editor_setup');
44
- add_action('admin_notices', 'uaf_api_notification');
45
 
46
  if (isset($_GET['uaf_api_notification_hide']) == 1){
47
  update_option('uaf_api_notification_hide','yes_2');
48
  }
49
 
 
50
  function uaf_api_notification(){
51
  if (get_option('uaf_api_notification_hide') != 'yes_2'){
52
  echo '<div class="updated">
@@ -57,6 +58,7 @@ function uaf_api_notification(){
57
  </div>';
58
  }
59
  }
 
60
 
61
  $uaf_disbale_editor_font_list_value = get_option('uaf_disbale_editor_font_list');
62
  if ($uaf_disbale_editor_font_list_value != 1):
@@ -108,8 +110,8 @@ function uaf_activate(){
108
 
109
  function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
110
  $uaf_version_check = get_option('uaf_current_version');
111
- if ($uaf_version_check != '5.0'):
112
- update_option('uaf_current_version', '5.0');
113
  if ($uaf_version_check < 4.0):
114
  uaf_create_folder();
115
  uaf_move_file_to_newPath();
41
  add_action('wp_enqueue_scripts', 'uaf_client_css');
42
  add_action('plugins_loaded', 'uaf_update_check');
43
  add_action('init', 'uaf_editor_setup');
44
+ //add_action('admin_notices', 'uaf_api_notification');
45
 
46
  if (isset($_GET['uaf_api_notification_hide']) == 1){
47
  update_option('uaf_api_notification_hide','yes_2');
48
  }
49
 
50
+ /*
51
  function uaf_api_notification(){
52
  if (get_option('uaf_api_notification_hide') != 'yes_2'){
53
  echo '<div class="updated">
58
  </div>';
59
  }
60
  }
61
+ */
62
 
63
  $uaf_disbale_editor_font_list_value = get_option('uaf_disbale_editor_font_list');
64
  if ($uaf_disbale_editor_font_list_value != 1):
110
 
111
  function uaf_update_check() { // MUST CHANGE WITH EVERY VERSION
112
  $uaf_version_check = get_option('uaf_current_version');
113
+ if ($uaf_version_check != '5.1'):
114
+ update_option('uaf_current_version', '5.1');
115
  if ($uaf_version_check < 4.0):
116
  uaf_create_folder();
117
  uaf_move_file_to_newPath();
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: dnesscarkey
3
  Tags: custom fonts, font embed, font uploader, any font, embed any font, font uploader, css3 font embed, @font-face embed, font conversion, webfont, ttf, opentype
4
  Requires at least: 3.0
5
- Tested up to: 4.9.8
6
- Stable tag: 5.0
7
 
8
  Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
9
 
@@ -113,6 +113,9 @@ No, our server is needed during font conversion only. After that all fonts are s
113
 
114
  == Changelog ==
115
 
 
 
 
116
  = 5.0 =
117
  * New API Key system, Lite / Test API key generation from plugin page.
118
 
2
  Contributors: dnesscarkey
3
  Tags: custom fonts, font embed, font uploader, any font, embed any font, font uploader, css3 font embed, @font-face embed, font conversion, webfont, ttf, opentype
4
  Requires at least: 3.0
5
+ Tested up to: 5.1.1
6
+ Stable tag: 5.1
7
 
8
  Embed any custom font in your website. #1 Rated custom fonts plugin by WPMUDev.org.
9
 
113
 
114
  == Changelog ==
115
 
116
+ = 5.1 =
117
+ * Fix url issue.
118
+
119
  = 5.0 =
120
  * New API Key system, Lite / Test API key generation from plugin page.
121
 
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: 5.0
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: 5.1
8
  Author URI: http://www.dineshkarki.com.np
9
  */
10