From 0f05f837f8e1e57e43dec59d3ec0a8ffea3511de Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 11 Sep 2008 16:46:22 +0000 Subject: [PATCH] View links for posts and pages. see #7552 git-svn-id: https://develop.svn.wordpress.org/trunk@8863 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index f23d5c5d4c..a3b90e09d8 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -752,6 +752,7 @@ function _post_row($a_post, $pending_comments, $mode) { $actions['edit'] = '' . __('Edit') . ''; $actions['inline'] = '' . __('Quick Edit') . ''; $actions['delete'] = "ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . ""; + $actions['view'] = '' . __('View') . ''; $action_count = count($actions); $i = 0; foreach ( $actions as $action => $link ) { @@ -957,6 +958,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) { $actions['edit'] = '' . __('Edit') . ''; $actions['inline'] = '' . __('Quick Edit') . ''; $actions['delete'] = "ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $page->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $page->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . ""; + $actions['view'] = '' . __('View') . ''; $action_count = count($actions); $i = 0; foreach ( $actions as $action => $link ) {