Code Duplication    Length = 15-15 lines in 2 locations

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

@@ 1241-1255 (lines=15) @@
1238
		$actions = array();
1239
		$title = _draft_or_post_title();
1240
1241
		if ( $can_edit_post && 'trash' != $post->post_status ) {
1242
			$actions['edit'] = sprintf(
1243
				'<a href="%s" aria-label="%s">%s</a>',
1244
				get_edit_post_link( $post->ID ),
1245
				/* translators: %s: post title */
1246
				esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ),
1247
				__( 'Edit' )
1248
			);
1249
			$actions['inline hide-if-no-js'] = sprintf(
1250
				'<a href="#" class="editinline" aria-label="%s">%s</a>',
1251
				/* translators: %s: post title */
1252
				esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $title ) ),
1253
				__( 'Quick&nbsp;Edit' )
1254
			);
1255
		}
1256
1257
		if ( current_user_can( 'delete_post', $post->ID ) ) {
1258
			if ( 'trash' === $post->post_status ) {

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

@@ 437-451 (lines=15) @@
434
		);
435
436
		$actions = array();
437
		if ( current_user_can( 'edit_term', $tag->term_id ) ) {
438
			$actions['edit'] = sprintf(
439
				'<a href="%s" aria-label="%s">%s</a>',
440
				esc_url( $edit_link ),
441
				/* translators: %s: taxonomy term name */
442
				esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $tag->name ) ),
443
				__( 'Edit' )
444
			);
445
			$actions['inline hide-if-no-js'] = sprintf(
446
				'<a href="#" class="editinline aria-button-if-js" aria-label="%s">%s</a>',
447
				/* translators: %s: taxonomy term name */
448
				esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $tag->name ) ),
449
				__( 'Quick&nbsp;Edit' )
450
			);
451
		}
452
		if ( current_user_can( 'delete_term', $tag->term_id ) ) {
453
			$actions['delete'] = sprintf(
454
				'<a href="%s" class="delete-tag aria-button-if-js" aria-label="%s">%s</a>',