Changeset 3419763
- Timestamp:
- 12/15/2025 07:49:46 AM (2 months ago)
- Location:
- audiotyped-ux/trunk
- Files:
-
- 2 edited
-
audiotyped-ux.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
audiotyped-ux/trunk/audiotyped-ux.php
r3419284 r3419763 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 Text Domain: audiotyped-ux 11 Version: 1.4. 511 Version: 1.4.6 12 12 */ 13 13 14 define( 'AUDIOTYPED_UX_VERSION', '1.4. 5' );14 define( 'AUDIOTYPED_UX_VERSION', '1.4.6' ); 15 15 16 16 function audiotyped_ux_defaults() { … … 66 66 $file_url = plugin_dir_url( __FILE__ ) . $relative_path; 67 67 68 $version = defined( 'AUDIOTYPED_UX_VERSION' ) ? AUDIOTYPED_UX_VERSION : '1.4. 5';68 $version = defined( 'AUDIOTYPED_UX_VERSION' ) ? AUDIOTYPED_UX_VERSION : '1.4.6'; 69 69 if ( file_exists( $file_path ) ) { 70 70 $version = filemtime( $file_path ); … … 912 912 } 913 913 914 function audiotyped_normalize_speaker_name( $name ) { 915 $name = sanitize_text_field( wp_unslash( $name ) ); 916 $name = trim( $name ); 917 918 // Remove one or multiple trailing colons (incl. optional whitespace): 919 $name = preg_replace( '/\s*:+\s*$/u', '', $name ); 920 921 // Collapse multiple spaces into a single space 922 $name = preg_replace( '/\s+/u', ' ', $name ); 923 924 return $name; 925 } 926 914 927 function audiotyped_transcriptux_transcript_html_tab() { 915 928 $transcript = ''; … … 933 946 934 947 $host_name = isset( $_POST['audiotyped_host_name'] ) 935 ? sanitize_text_field( wp_unslash( $_POST['audiotyped_host_name'] ) ) 948 ? audiotyped_normalize_speaker_name( $_POST['audiotyped_host_name'] ) 949 : ''; 950 951 $guest_name = isset( $_POST['audiotyped_guest_name'] ) 952 ? audiotyped_normalize_speaker_name( $_POST['audiotyped_guest_name'] ) 936 953 : ''; 937 954 938 $guest_name = isset( $_POST['audiotyped_guest_name'] )939 ? sanitize_text_field( wp_unslash( $_POST['audiotyped_guest_name'] ) )940 : '';941 942 // NEU: Guest 2 Name (optional)943 955 $guest2_name = isset( $_POST['audiotyped_guest2_name'] ) 944 ? sanitize_text_field( wp_unslash( $_POST['audiotyped_guest2_name'] ))956 ? audiotyped_normalize_speaker_name( $_POST['audiotyped_guest2_name'] ) 945 957 : ''; 946 958 … … 1060 1072 */ 1061 1073 function audiotyped_transcriptux_generate_html( $transcript, $host_name, $guest_name, $host_img, $guest_img, $guest2_name = '', $guest2_img = '' ) { 1074 $host_name = audiotyped_normalize_speaker_name( $host_name ); 1075 $guest_name = audiotyped_normalize_speaker_name( $guest_name ); 1076 $guest2_name = audiotyped_normalize_speaker_name( $guest2_name ); 1062 1077 $host_img = esc_url( $host_img ); 1063 1078 $guest_img = esc_url( $guest_img ); -
audiotyped-ux/trunk/readme.txt
r3419284 r3419763 4 4 Requires at least: 5.4.2 5 5 Tested up to: 6.9 6 Stable tag: 1.4. 56 Stable tag: 1.4.6 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.