| | 88 | $actions = array(); |
|---|
| | 89 | $actions['edit'] = '<a href="post.php?action=edit&post=' . $post->ID . '">' . __('Edit') . '</a>'; |
|---|
| | 90 | $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post_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') . "</a>"; |
|---|
| | 91 | $action_count = count($actions); |
|---|
| | 92 | $i = 0; |
|---|
| | 93 | foreach ( $actions as $action => $link ) { |
|---|
| | 94 | ++$i; |
|---|
| | 95 | ( $i == $action_count ) ? $sep = '' : $sep = ' | '; |
|---|
| | 96 | echo "<span class='$action'>$link$sep</span>"; |
|---|
| | 97 | } |
|---|
| | 98 | } |
|---|