Ticket #56230: 56230.diff
File 56230.diff, 1.8 KB (added by , 2 years ago) |
---|
-
src/js/_enqueues/admin/common.js
751 751 selectionStart = $permalinkStructure[ 0 ].selectionStart, 752 752 selectionEnd = $permalinkStructure[ 0 ].selectionEnd, 753 753 textToAppend = $( this ).text().trim(), 754 textToAnnounce = $( this ).attr( 'data-added' ),754 textToAnnounce = ( $( this ).hasClass( 'active' ) ) ? $( this ).attr( 'data-removed' ) : $( this ).attr( 'data-added' ), 755 755 newSelectionStart; 756 756 757 757 // Remove structure tag if already part of the structure. -
src/wp-admin/options-permalink.php
331 331 $structure_tag_added = __( '%s added to permalink structure' ); 332 332 333 333 /* translators: %s: Permalink structure tag. */ 334 $structure_tag_removed = __( '%s removed from permalink structure' ); 335 336 /* translators: %s: Permalink structure tag. */ 334 337 $structure_tag_already_used = __( '%s (already used in permalink structure)' ); 335 338 336 339 if ( ! empty( $available_tags ) ) : … … 344 347 class="button button-secondary" 345 348 aria-label="<?php echo esc_attr( sprintf( $explanation, $tag ) ); ?>" 346 349 data-added="<?php echo esc_attr( sprintf( $structure_tag_added, $tag ) ); ?>" 350 data-removed="<?php echo esc_attr( sprintf( $structure_tag_removed, $tag ) ); ?>" 347 351 data-used="<?php echo esc_attr( sprintf( $structure_tag_already_used, $tag ) ); ?>"> 348 352 <?php echo '%' . $tag . '%'; ?> 349 353 </button>