WordPress.org

Make WordPress Core

Changeset 24824


Ignore:
Timestamp:
07/28/13 21:06:19 (4 years ago)
Author:
nacin
Message:

Terms list table: Only show 'View' links for public taxonomies. props SergeyBiryukov. fixes #24692.

File:
1 edited

Legend:

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

    r24380 r24824  
    260260        if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) 
    261261            $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>"; 
    262         $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>'; 
     262        if ( $tax->public ) 
     263            $actions['view'] = '<a href="' . get_term_link( $tag ) . '">' . __( 'View' ) . '</a>'; 
    263264 
    264265        $actions = apply_filters( 'tag_row_actions', $actions, $tag ); 
Note: See TracChangeset for help on using the changeset viewer.