Changeset 53911
- Timestamp:
- 08/19/2022 08:58:34 PM (2 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/common.js
r52591 r53911 752 752 selectionEnd = $permalinkStructure[ 0 ].selectionEnd, 753 753 textToAppend = $( this ).text().trim(), 754 textToAnnounce = $( this ).attr( 'data-added' ),754 textToAnnounce, 755 755 newSelectionStart; 756 757 if ( $( this ).hasClass( 'active' ) ) { 758 textToAnnounce = $( this ).attr( 'data-removed' ); 759 } else { 760 textToAnnounce = $( this ).attr( 'data-added' ); 761 } 756 762 757 763 // Remove structure tag if already part of the structure. -
trunk/src/wp-admin/options-permalink.php
r53714 r53911 310 310 /* translators: %s: Permalink structure tag. */ 311 311 $tag_added = __( '%s added to permalink structure' ); 312 312 /* translators: %s: Permalink structure tag. */ 313 $tag_removed = __( '%s removed from permalink structure' ); 313 314 /* translators: %s: Permalink structure tag. */ 314 315 $tag_already_used = __( '%s (already used in permalink structure)' ); … … 379 380 aria-label="<?php echo esc_attr( sprintf( $explanation, $tag ) ); ?>" 380 381 data-added="<?php echo esc_attr( sprintf( $tag_added, $tag ) ); ?>" 382 data-removed="<?php echo esc_attr( sprintf( $tag_removed, $tag ) ); ?>" 381 383 data-used="<?php echo esc_attr( sprintf( $tag_already_used, $tag ) ); ?>"> 382 384 <?php echo '%' . $tag . '%'; ?>
Note: See TracChangeset
for help on using the changeset viewer.