Code Duplication    Length = 9-9 lines in 2 locations

src/wp-admin/includes/class-wp-media-list-table.php 1 location

@@ 717-725 (lines=9) @@
714
						esc_attr( sprintf( __( 'Restore “%s” from the Trash' ), $att_title ) ),
715
						__( 'Restore' )
716
					);
717
				} elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
718
					$actions['trash'] = sprintf(
719
						'<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>',
720
						wp_nonce_url( "post.php?action=trash&amp;post=$post->ID", 'trash-post_' . $post->ID ),
721
						/* translators: %s: attachment title */
722
						esc_attr( sprintf( __( 'Move &#8220;%s&#8221; to the Trash' ), $att_title ) ),
723
						_x( 'Trash', 'verb' )
724
					);
725
				}
726
				if ( $this->is_trash || ! EMPTY_TRASH_DAYS || ! MEDIA_TRASH ) {
727
					$delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : '';
728
					$actions['delete'] = sprintf(

src/wp-admin/includes/class-wp-posts-list-table.php 1 location

@@ 1275-1283 (lines=9) @@
1272
					_x( 'Trash', 'verb' )
1273
				);
1274
			}
1275
			if ( 'trash' === $post->post_status || ! EMPTY_TRASH_DAYS ) {
1276
				$actions['delete'] = sprintf(
1277
					'<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
1278
					get_delete_post_link( $post->ID, '', true ),
1279
					/* translators: %s: post title */
1280
					esc_attr( sprintf( __( 'Delete &#8220;%s&#8221; permanently' ), $title ) ),
1281
					__( 'Delete Permanently' )
1282
				);
1283
			}
1284
		}
1285
1286
		if ( is_post_type_viewable( $post_type_object ) ) {