Changeset 3404583
- Timestamp:
- 11/28/2025 03:31:32 AM (4 months ago)
- Location:
- use-any-font
- Files:
-
- 37 added
- 4 edited
-
tags/6.3.14 (added)
-
tags/6.3.14/includes (added)
-
tags/6.3.14/includes/assets (added)
-
tags/6.3.14/includes/assets/css (added)
-
tags/6.3.14/includes/assets/css/uaf_admin.css (added)
-
tags/6.3.14/includes/assets/img (added)
-
tags/6.3.14/includes/assets/img/ajax-loader.gif (added)
-
tags/6.3.14/includes/assets/img/jquery-validation-gravity.gif (added)
-
tags/6.3.14/includes/assets/js (added)
-
tags/6.3.14/includes/assets/js/uaf_admin.js (added)
-
tags/6.3.14/includes/functions (added)
-
tags/6.3.14/includes/functions/uaf_admin_functions.php (added)
-
tags/6.3.14/includes/functions/uaf_block_editor_functions.php (added)
-
tags/6.3.14/includes/functions/uaf_cache_functions.php (added)
-
tags/6.3.14/includes/functions/uaf_client_functions.php (added)
-
tags/6.3.14/includes/functions/uaf_editor_functions.php (added)
-
tags/6.3.14/includes/functions/uaf_font_functions.php (added)
-
tags/6.3.14/includes/uaf_config.php (added)
-
tags/6.3.14/includes/views (added)
-
tags/6.3.14/includes/views/uaf_api_interface.php (added)
-
tags/6.3.14/includes/views/uaf_font_assign.php (added)
-
tags/6.3.14/includes/views/uaf_font_upload_js.php (added)
-
tags/6.3.14/includes/views/uaf_font_upload_php.php (added)
-
tags/6.3.14/includes/views/uaf_instructions.php (added)
-
tags/6.3.14/includes/views/uaf_main.php (added)
-
tags/6.3.14/includes/views/uaf_predefined_fonts.php (added)
-
tags/6.3.14/includes/views/uaf_settings.php (added)
-
tags/6.3.14/includes/views/uaf_sidebar.php (added)
-
tags/6.3.14/includes/views/uaf_uploaded_font_list.php (added)
-
tags/6.3.14/readme.txt (added)
-
tags/6.3.14/screenshot-1.png (added)
-
tags/6.3.14/screenshot-2.png (added)
-
tags/6.3.14/screenshot-3.png (added)
-
tags/6.3.14/screenshot-4.png (added)
-
tags/6.3.14/screenshot-5.png (added)
-
tags/6.3.14/screenshot-6.png (added)
-
tags/6.3.14/use-any-font.php (added)
-
trunk/includes/functions/uaf_font_functions.php (modified) (3 diffs)
-
trunk/includes/uaf_config.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/use-any-font.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
use-any-font/trunk/includes/functions/uaf_font_functions.php
r3246405 r3404583 184 184 $font_name = $fontsData[$fontImplementData['font_key']]['font_name']; 185 185 }?> 186 <?php echo esc_html($fontImplementData['font_elements']); ?>{186 <?php echo uaf_sanitize_css_selector($fontImplementData['font_elements']); ?>{ 187 187 font-family: '<?php echo esc_html($font_name); ?>' !important; 188 188 } … … 306 306 307 307 $custom_elements = trim(sanitize_textarea_field($_POST['custom_elements'])); 308 309 if ( empty($font_key) ) { 310 return array( 311 'status' => 'error', 312 'body' => 'Please select a font before assigning.' 313 ); 314 } 315 316 if ( empty($elements) && empty($custom_elements) ) { 317 return array( 318 'status' => 'error', 319 'body' => 'Please select at least one element or add a custom element.' 320 ); 321 } 308 322 309 323 $fontsData = uaf_get_uploaded_font_data(); … … 471 485 } 472 486 } 487 488 function uaf_sanitize_css_selector( $selector ) { 489 // Allow only valid CSS selector characters 490 return preg_replace( 491 '/[^A-Za-z0-9\s\-\_\.\#\>\:\,\*\+\~\[\]\=\"\'\(\)\/]/', 492 '', 493 $selector 494 ); 495 } -
use-any-font/trunk/includes/uaf_config.php
r3304583 r3404583 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 4 $GLOBALS['uaf_current_version'] = '6.3.1 3';4 $GLOBALS['uaf_current_version'] = '6.3.14'; 5 5 6 6 -
use-any-font/trunk/readme.txt
r3304583 r3404583 3 3 Tags: custom fonts, font manager, font uploader, typography, google fonts 4 4 Requires at least: 4.0 5 Tested up to: 6.8. 16 Stable tag: 6.3.1 35 Tested up to: 6.8.3 6 Stable tag: 6.3.14 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 171 171 == Changelog == 172 172 173 = 6.3.14 = 174 * Added validation for font assign section. 175 * Fixed special characters issue in custom element box. 176 173 177 = 6.3.13 = 174 178 * Fixed API key issue. -
use-any-font/trunk/use-any-font.php
r3304583 r3404583 6 6 Description: Embed any font in your website 7 7 Author: Dnesscarkey 8 Version: 6.3.1 38 Version: 6.3.14 9 9 Author URI: https://dineshkarki.com.np/use-any-font 10 10 */
Note: See TracChangeset
for help on using the changeset viewer.