375
375
get_edit_term_link( $tag->term_id, $taxonomy, $this->screen->post_type )
378
$out = '<strong><a class="row-title" href="' . esc_url( $edit_link ) . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $name ) ) . '">' . $name . '</a></strong><br />';
379
'<strong><a class="row-title" href="%s" aria-label="%s">%s</a></strong><br />',
380
esc_url( $edit_link ),
381
/* translators: %s: taxonomy term name */
382
esc_attr( sprintf( __( '“%s” (Edit)' ), $tag->name ) ),
380
386
$out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
381
387
$out .= '<div class="name">' . $qe_data->name . '</div>';
430
436
$actions = array();
431
437
if ( current_user_can( $tax->cap->edit_terms ) ) {
432
$actions['edit'] = '<a href="' . esc_url( $edit_link ) . '">' . __( 'Edit' ) . '</a>';
433
$actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __( 'Quick Edit' ) . '</a>';
435
if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
436
$actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
438
$actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>';
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 “%s”' ), $tag->name ) ),
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 “%s” inline' ), $tag->name ) ),
449
__( 'Quick Edit' )
452
if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) {
453
$actions['delete'] = sprintf(
454
'<a href="%s" class="delete-tag aria-button-if-js" aria-label="%s">%s</a>',
455
wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ),
456
/* translators: %s: taxonomy term name */
457
esc_attr( sprintf( __( 'Delete “%s”' ), $tag->name ) ),
461
if ( $tax->public ) {
462
$actions['view'] = sprintf(
463
'<a href="%s" aria-label="%s">%s</a>',
464
get_term_link( $tag ),
465
/* translators: %s: taxonomy term name */
466
esc_attr( sprintf( __( 'View “%s” archive' ), $tag->name ) ),
441
472
* Filter the action links displayed for each term in the Tags list table.