From 438002864fea92a8a63eb32b6ff0e674710ce798 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 28 Jul 2013 21:06:19 +0000 Subject: [PATCH] Terms list table: Only show 'View' links for public taxonomies. props SergeyBiryukov. fixes #24692. git-svn-id: https://develop.svn.wordpress.org/trunk@24824 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-terms-list-table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php index eef7ccfdbc..f44b626616 100644 --- a/wp-admin/includes/class-wp-terms-list-table.php +++ b/wp-admin/includes/class-wp-terms-list-table.php @@ -259,7 +259,8 @@ class WP_Terms_List_Table extends WP_List_Table { } if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) $actions['delete'] = "term_id ) . "'>" . __( 'Delete' ) . ""; - $actions['view'] = '' . __( 'View' ) . ''; + if ( $tax->public ) + $actions['view'] = '' . __( 'View' ) . ''; $actions = apply_filters( 'tag_row_actions', $actions, $tag ); $actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag );