432 | | $actions['edit'] = '<a href="' . esc_url( $edit_link ) . '">' . __( 'Edit' ) . '</a>'; |
433 | | $actions['inline hide-if-no-js'] = '<a href="#" class="editinline aria-button-if-js">' . __( 'Quick Edit' ) . '</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 ) ), |
| 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 “%s” inline' ), $tag->name ) ), |
| 449 | __( 'Quick Edit' ) |
| 450 | ); |
435 | | if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) |
436 | | $actions['delete'] = "<a class='delete-tag aria-button-if-js' href='" . wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>"; |
437 | | if ( $tax->public ) |
438 | | $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>'; |
| 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 ) ), |
| 458 | __( 'Delete' ) |
| 459 | ); |
| 460 | } |
| 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 ) ), |
| 467 | __( 'View' ) |
| 468 | ); |
| 469 | } |