Use Any Font - Version 6.2.5

Version Description

  • Removed use of PHP uploader.
Download this release

Release Info

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

Code changes from version 6.2.4 to 6.2.5

includes/functions/uaf_admin_functions.php CHANGED
@@ -24,7 +24,8 @@ function uaf_admin_assets(){
24
  function uaf_interface(){
25
  $uaf_tabs = array(
26
  'api' => array('name'=>'API Key','path'=>'uaf_api_interface.php'),
27
- 'font_upload' => array('name'=>'Upload Font','path'=>'uaf_font_upload_'.$GLOBALS['uaf_user_settings']['uaf_uploader_type'].'.php'),
 
28
  'font_assign' => array('name'=>'Assign Font','path'=>'uaf_font_assign.php'),
29
  'settings' => array('name'=>"Settings",'path'=>'uaf_settings.php'),
30
  'instructions' => array('name'=>"Instructions",'path'=>'uaf_instructions.php')
@@ -256,6 +257,7 @@ function uaf_trigger_actions(){
256
  $actionReturn = uaf_save_font_files($_POST['font_name'], $font_weight, $font_style, $_POST['convert_response']);
257
  }
258
 
 
259
  if (isset($_POST['submit-uaf-font-php'])){
260
  if ( isset($_POST['uaf_nonce']) && wp_verify_nonce($_POST['uaf_nonce'], 'uaf_font_upload_php')) {
261
  $actionReturn = uaf_upload_font_to_server();
@@ -270,7 +272,7 @@ function uaf_trigger_actions(){
270
  } else {
271
  $actionReturn = $actionReturnNonceError;
272
  }
273
- }
274
 
275
  if (isset($_POST['submit-uaf-font-assign'])){
276
  if ( isset($_POST['uaf_nonce']) && wp_verify_nonce($_POST['uaf_nonce'], 'uaf_font_assign')) {
24
  function uaf_interface(){
25
  $uaf_tabs = array(
26
  'api' => array('name'=>'API Key','path'=>'uaf_api_interface.php'),
27
+ 'font_upload' => array('name'=>'Upload Font','path'=>'uaf_font_upload_js.php'), // PHP Uploader discontinued.
28
+ //'font_upload' => array('name'=>'Upload Font','path'=>'uaf_font_upload_'.$GLOBALS['uaf_user_settings']['uaf_uploader_type'].'.php'),
29
  'font_assign' => array('name'=>'Assign Font','path'=>'uaf_font_assign.php'),
30
  'settings' => array('name'=>"Settings",'path'=>'uaf_settings.php'),
31
  'instructions' => array('name'=>"Instructions",'path'=>'uaf_instructions.php')
257
  $actionReturn = uaf_save_font_files($_POST['font_name'], $font_weight, $font_style, $_POST['convert_response']);
258
  }
259
 
260
+ /* NOT in use till API accepts font file in Binary
261
  if (isset($_POST['submit-uaf-font-php'])){
262
  if ( isset($_POST['uaf_nonce']) && wp_verify_nonce($_POST['uaf_nonce'], 'uaf_font_upload_php')) {
263
  $actionReturn = uaf_upload_font_to_server();
272
  } else {
273
  $actionReturn = $actionReturnNonceError;
274
  }
275
+ }*/
276
 
277
  if (isset($_POST['submit-uaf-font-assign'])){
278
  if ( isset($_POST['uaf_nonce']) && wp_verify_nonce($_POST['uaf_nonce'], 'uaf_font_assign')) {
includes/functions/uaf_font_functions.php CHANGED
@@ -87,6 +87,7 @@ function uaf_save_font_files($font_name, $font_weight, $font_style, $convertResp
87
  return $fontUploadFinalResponse;
88
  }
89
 
 
90
  function uaf_upload_font_to_server(){
91
  $font_file_details = pathinfo($_FILES['font_file']['name']);
92
  $file_extension = strtolower($font_file_details['extension']);
@@ -133,6 +134,7 @@ function uaf_upload_font_to_server(){
133
  }
134
  return $fontUploadResponse;
135
  }
 
136
 
137
  function uaf_path_details(){
138
  $uaf_upload = wp_upload_dir();
87
  return $fontUploadFinalResponse;
88
  }
89
 
90
+ /* NOT TO BE USED TILL API ACCEPTS FILES IN BINARY
91
  function uaf_upload_font_to_server(){
92
  $font_file_details = pathinfo($_FILES['font_file']['name']);
93
  $file_extension = strtolower($font_file_details['extension']);
134
  }
135
  return $fontUploadResponse;
136
  }
137
+ */
138
 
139
  function uaf_path_details(){
140
  $uaf_upload = wp_upload_dir();
includes/uaf_config.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
- $GLOBALS['uaf_current_version'] = '6.2.4';
5
 
6
 
7
  $GLOBALS['uaf_fix_settings'] = array(
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
+ $GLOBALS['uaf_current_version'] = '6.2.5';
5
 
6
 
7
  $GLOBALS['uaf_fix_settings'] = array(
includes/views/uaf_settings.php CHANGED
@@ -12,6 +12,7 @@
12
  </span>
13
  </p>
14
 
 
15
  <p>
16
  <label>Use PHP Uploader</label>
17
  <span class="field">
@@ -21,7 +22,7 @@
21
  </select>
22
  ( Only if default javascript uploader doesn't work. <em>Need PHP Curl. </em> )
23
  </span>
24
- </p>
25
 
26
  <p>
27
  <label>Use Absolute Font Path</label>
12
  </span>
13
  </p>
14
 
15
+ <?php /* NOT in use till API accepts files in binary
16
  <p>
17
  <label>Use PHP Uploader</label>
18
  <span class="field">
22
  </select>
23
  ( Only if default javascript uploader doesn't work. <em>Need PHP Curl. </em> )
24
  </span>
25
+ </p>*/ ?>
26
 
27
  <p>
28
  <label>Use Absolute Font Path</label>
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.9
6
- Stable tag: 6.2.4
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
 
@@ -148,6 +148,9 @@ Please do write us after integration and we will add it in our supported list.
148
 
149
  == Changelog ==
150
 
 
 
 
151
  = 6.2.4 =
152
  * Added details about API usage.
153
 
3
  Tags: custom fonts, font embed, font uploader, typography, install font
4
  Requires at least: 3.0
5
  Tested up to: 5.9
6
+ Stable tag: 6.2.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
 
148
 
149
  == Changelog ==
150
 
151
+ = 6.2.5 =
152
+ * Removed use of PHP uploader.
153
+
154
  = 6.2.4 =
155
  * Added details about API usage.
156
 
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.2.4
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.2.5
9
  Author URI: https://dineshkarki.com.np/use-any-font
10
  */
11