Make WordPress Core


Ignore:
Timestamp:
06/08/2011 04:49:27 PM (13 years ago)
Author:
nacin
Message:

Admin Bar: Add View Site/Dashboard links, 'View X' links in the admin, 'View' action link for terms. New custom taxonomy string: view_item, defaulting to 'View Tag' and View Category'. fixes #17705.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-terms-list-table.php

    r18010 r18194  
    262262        if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term )
    263263            $actions['delete'] = "<a class='delete-tag' href='" . wp_nonce_url( "edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id ) . "'>" . __( 'Delete' ) . "</a>";
     264        $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>';
    264265
    265266        $actions = apply_filters( 'tag_row_actions', $actions, $tag );
Note: See TracChangeset for help on using the changeset viewer.