Changeset 3420766
- Timestamp:
- 12/16/2025 08:50:07 AM (4 months ago)
- Location:
- sensei-certificates/trunk
- Files:
-
- 7 edited
-
changelog.txt (modified) (1 diff)
-
classes/class-woothemes-sensei-certificate-templates.php (modified) (2 diffs)
-
classes/class-woothemes-sensei-certificates-utils.php (modified) (1 diff)
-
classes/class-woothemes-sensei-pdf-certificate.php (modified) (4 diffs)
-
lang/sensei-certificates.pot (modified) (9 diffs)
-
readme.txt (modified) (1 diff)
-
woothemes-sensei-certificates.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sensei-certificates/trunk/changelog.txt
r3189023 r3420766 1 1 *** Changelog *** 2 3 2025.12.15 - version 2.5.4 4 * Fix: PHP 8.2 utf8_decode deprecation notice - #369 5 2 6 3 7 2024.11.14 - version 2.5.3 -
sensei-certificates/trunk/classes/class-woothemes-sensei-certificate-templates.php
r3189023 r3420766 672 672 // Decode string based on font type 673 673 if ( 'latin' == $fonttype ) { 674 $value = utf8_decode( $value );674 $value = Woothemes_Sensei_Certificates_Utils::convert_utf8_to_latin1( $value ); 675 675 } 676 676 … … 773 773 // Decode string based on font type 774 774 if ( 'latin' == $fonttype ) { 775 $value = utf8_decode( $value );775 $value = Woothemes_Sensei_Certificates_Utils::convert_utf8_to_latin1( $value ); 776 776 } 777 777 -
sensei-certificates/trunk/classes/class-woothemes-sensei-certificates-utils.php
r2292649 r3420766 67 67 ); 68 68 } 69 70 /** 71 * Convert UTF-8 text to ISO-8859-1 with transliteration. 72 * 73 * Falls back to the original string if conversion fails. 74 * 75 * @param string $value Text to convert. 76 * @return string 77 */ 78 public static function convert_utf8_to_latin1( $value ) { 79 if ( ! $value || ! is_string( $value ) ) { 80 return $value; 81 } 82 83 $converted = iconv( 'UTF-8', 'ISO-8859-1//TRANSLIT', $value ); 84 85 return false === $converted ? $value : $converted; 86 } 69 87 } -
sensei-certificates/trunk/classes/class-woothemes-sensei-pdf-certificate.php
r3132778 r3420766 254 254 // Decode string based on font type 255 255 if ( 'latin' == $fonttype ) { 256 $value = utf8_decode( $value );256 $value = Woothemes_Sensei_Certificates_Utils::convert_utf8_to_latin1( $value ); 257 257 } 258 258 … … 285 285 286 286 // and write out the value 287 $fpdf->Image( esc_url( utf8_decode( $value ) ), $x, $y, $w, $h );287 $fpdf->Image( esc_url( Woothemes_Sensei_Certificates_Utils::convert_utf8_to_latin1( $value ) ), $x, $y, $w, $h ); 288 288 289 289 } // End If Statement … … 383 383 // Decode string based on font type 384 384 if ( 'latin' == $fonttype ) { 385 $value = utf8_decode( $value );385 $value = Woothemes_Sensei_Certificates_Utils::convert_utf8_to_latin1( $value ); 386 386 } 387 387 … … 457 457 // Decode string based on font type 458 458 if ( 'latin' == $fonttype ) { 459 $value = utf8_decode( $value );459 $value = Woothemes_Sensei_Certificates_Utils::convert_utf8_to_latin1( $value ); 460 460 } 461 461 -
sensei-certificates/trunk/lang/sensei-certificates.pot
r3189023 r3420766 1 # Copyright (C) 202 4Automattic1 # Copyright (C) 2025 Automattic 2 2 # This file is distributed under the GPLv2+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Sensei LMS Certificates 2.5. 3\n"5 "Project-Id-Version: Sensei LMS Certificates 2.5.4\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sensei-certificates\n" 7 7 "Last-Translator: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 4-11-14T15:56:22+00:00\n"12 "POT-Creation-Date: 2025-12-15T17:25:44+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.1 0.0\n"14 "X-Generator: WP-CLI 2.12.0\n" 15 15 "X-Domain: sensei-certificates\n" 16 16 … … 263 263 #. translators: %s is replaced with the formatted date timestamp of a certificate template revision 264 264 #: admin/woothemes-sensei-certificate-templates-admin-init.php:285 265 #, php-format 265 266 msgid "Certificate Template restored to revision from %s" 266 267 msgstr "" … … 276 277 #. translators: %1$s is replaced with the date on which the certificate template is scheduled to be published 277 278 #: admin/woothemes-sensei-certificate-templates-admin-init.php:291 279 #, php-format 278 280 msgid "Certificate Template scheduled for: <strong>%1$s</strong>." 279 281 msgstr "" … … 373 375 #. translators: %s is replaced with the title of the certificate template 374 376 #: classes/class-woothemes-sensei-certificate-templates.php:975 377 #, php-format 375 378 msgid "Edit %s" 376 379 msgstr "" … … 378 381 #. translators: %1$s is version of PHP that this plugin requires; %2$s is the version of PHP WordPress is running on. 379 382 #: classes/class-woothemes-sensei-certificates-dependency-checker.php:92 383 #, php-format 380 384 msgid "<strong>Sensei LMS Certificates</strong> requires a minimum PHP version of %1$s, but you are running %2$s." 381 385 msgstr "" … … 392 396 #. translators: %1$s is the minimum version number of Sensei that is required. 393 397 #: classes/class-woothemes-sensei-certificates-dependency-checker.php:123 398 #, php-format 394 399 msgid "<strong>Sensei LMS Certificates</strong> requires that the plugin <strong>Sensei</strong> (minimum version: <strong>%1$s</strong>) is installed and activated." 395 400 msgstr "" … … 481 486 #. translators: %1$s is the URL for editing the Course. 482 487 #: classes/class-woothemes-sensei-certificates.php:690 488 #, php-format 483 489 msgid "Set a certificate template on the <a href=\"%1$s\">course</a> in order to view this certificate" 484 490 msgstr "" … … 535 541 #. translators: Placeholder %d is the percentage complete. 536 542 #: classes/tools/class-sensei-certificates-tool-create-certificates.php:91 543 #, php-format 537 544 msgid "This task is running in the background and is %d%% complete." 538 545 msgstr "" -
sensei-certificates/trunk/readme.txt
r3189023 r3420766 2 2 Contributors: automattic, alexsanford1, donnapep, jakeom, gikaragia, renathoc, yscik, m1r0, aaronfc 3 3 Tags: certificates, course certificate, sensei lms 4 Requires at least: 6. 55 Tested up to: 6. 74 Requires at least: 6.7 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 2.5. 37 Stable tag: 2.5.4 8 8 License: GPLv2+ 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
sensei-certificates/trunk/woothemes-sensei-certificates.php
r3189023 r3420766 4 4 * Plugin URI: https://woocommerce.com/products/sensei-certificates/ 5 5 * Description: Award your students with a certificate of completion and a sense of accomplishment after finishing a course. 6 * Version: 2.5. 36 * Version: 2.5.4 7 7 * Author: Automattic 8 8 * Author URI: https://automattic.com 9 * Requires at least: 6. 510 * Tested up to: 6. 79 * Requires at least: 6.7 10 * Tested up to: 6.9 11 11 * Requires PHP: 7.4 12 12 * License: GPLv2+ … … 17 17 } 18 18 19 define( 'SENSEI_CERTIFICATES_VERSION', '2.5. 3' );19 define( 'SENSEI_CERTIFICATES_VERSION', '2.5.4' ); 20 20 define( 'SENSEI_CERTIFICATES_PLUGIN_FILE', __FILE__ ); 21 21 define( 'SENSEI_CERTIFICATES_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.