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>'; |
| 434 | $actions['edit'] = '<a href="' . esc_url( $edit_link ) . '" aria-label="' . |
| 435 | /* translators: %s: taxonomy term name */ |
| 436 | esc_attr( sprintf( __( 'Edit “%s”' ), $tag->name ) ) . '">' . __( 'Edit' ) . '</a>'; |
| 437 | $actions['inline hide-if-no-js'] = '<a href="#" class="editinline aria-button-if-js" aria-label="' . |
| 438 | /* translators: %s: taxonomy term name */ |
| 439 | esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ) . '">' . __( 'Quick Edit' ) . '</a>'; |
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>'; |
| 441 | if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) { |
| 442 | $actions['delete'] = "<a class='delete-tag aria-button-if-js' href='" . |
| 443 | wp_nonce_url( "edit-tags.php?action=delete&taxonomy=$taxonomy&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "' aria-label='" . |
| 444 | /* translators: %s: taxonomy term name */ |
| 445 | esc_attr( sprintf( __( 'Delete “%s”' ), $tag->name ) ) . "'>" . __( 'Delete' ) . "</a>"; |
| 446 | } |
| 447 | if ( $tax->public ) { |
| 448 | $actions['view'] = '<a href="' . get_term_link( $tag ) . '" aria-label="' . |
| 449 | /* translators: %s: taxonomy term name */ |
| 450 | esc_attr( sprintf( __( 'View “%s” archive on your site' ), $tag->name ) ) . '">' . __( 'View' ) . '</a>'; |
| 451 | } |