From 44524d6c3c248d0252c2180c543d8987effcade0 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 13 Oct 2008 21:32:05 +0000 Subject: [PATCH] Add title attributes to post action links git-svn-id: http://svn.automattic.com/wordpress/trunk@9134 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index ef7261883b..150eb6606c 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1282,9 +1282,9 @@ function _post_row($a_post, $pending_comments, $mode) { $actions = array(); if ( current_user_can('edit_post', $post->ID) ) { - $actions['edit'] = '' . __('Edit') . ''; - $actions['inline hide-if-no-js'] = '' . __('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['edit'] = '' . __('Edit') . ''; + $actions['inline hide-if-no-js'] = '' . __('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') . ""; } if ( in_array($post->post_status, array('pending', 'draft')) ) $actions['view'] = '' . __('Preview') . '';