Index: wp-admin/includes/template.php
===================================================================
--- wp-admin/includes/template.php (revision 15277)
+++ wp-admin/includes/template.php (working copy)
@@ -1503,7 +1503,6 @@
}
}
- $page->post_title = esc_html( $page->post_title );
$pad = str_repeat( '— ', $level );
$id = (int) $page->ID;
$rowclass = 'alternate' == $rowclass ? '' : 'alternate';
@@ -1529,7 +1528,7 @@
case 'cb':
?>
-
cap->edit_post, $page->ID ) ) { ?> |
+ cap->edit_post, $id ) ) { ?> |
ID );
+ $edit_link = get_edit_post_link( $id );
?>
- >cap->edit_post, $page->ID) && $post->post_status != 'trash' ) { ?>labels->parent_item_colon . ' ' . esc_html($parent_name) : ''; ?>
+ | >cap->edit_post, $id) && $post->post_status != 'trash' ) { ?>labels->parent_item_colon . ' ' . esc_html($parent_name) : ''; ?>
cap->edit_post, $page->ID) && $post->post_status != 'trash' ) {
+ if ( current_user_can($post_type_object->cap->edit_post, $id) && $post->post_status != 'trash' ) {
$actions['edit'] = '' . __('Edit') . '';
$actions['inline'] = '' . __('Quick Edit') . '';
}
- if ( current_user_can($post_type_object->cap->delete_post, $page->ID) ) {
+ if ( current_user_can($post_type_object->cap->delete_post, $id) ) {
if ( $post->post_status == 'trash' )
- $actions['untrash'] = "post_type . '_' . $page->ID) . "'>" . __('Restore') . "";
+ $actions['untrash'] = "post_type . '_' . $id) . "'>" . __('Restore') . "";
elseif ( EMPTY_TRASH_DAYS )
- $actions['trash'] = "" . __('Trash') . "";
+ $actions['trash'] = "" . __('Trash') . "";
if ( $post->post_status == 'trash' || !EMPTY_TRASH_DAYS )
- $actions['delete'] = "post_type . '_' . $page->ID) . "'>" . __('Delete Permanently') . "";
+ $actions['delete'] = "post_type . '_' . $id) . "'>" . __('Delete Permanently') . "";
}
if ( in_array($post->post_status, array('pending', 'draft')) ) {
- if ( current_user_can($post_type_object->cap->edit_post, $page->ID) )
- $actions['view'] = '' . __('Preview') . '';
+ if ( current_user_can($post_type_object->cap->edit_post, $id) )
+ $actions['view'] = '' . __('Preview') . '';
} elseif ( $post->post_status != 'trash' ) {
- $actions['view'] = '' . __('View') . '';
+ $actions['view'] = '' . __('View') . '';
}
$actions = apply_filters('page_row_actions', $actions, $page);
$action_count = count($actions);
@@ -1608,7 +1607,7 @@
?>
| >
ID );
+ $left = get_pending_comments_num( $id );
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
if ( $left )
echo '';
|