post_type ";
+ echo $bulk ? "bulk-edit-row bulk-edit-row-$hclass bulk-edit-$screen->post_type" : "quick-edit-row quick-edit-row-$hclass inline-edit-$screen->post_type";
?>" style="display: none">
-
+
-
+post_type, 'title' ) ) :
+ if ( $bulk ) : ?>
@@ -1037,16 +910,15 @@ function inline_edit_row( $type ) {
-
-
-
-
-
+
+
+
@@ -1055,24 +927,26 @@ function inline_edit_row( $type ) {
id, true, $type ); // TODO: ROLE SYSTEM
+ if ( post_type_supports( $screen->post_type, 'author' ) ) :
+ $authors = get_editable_user_ids( $current_user->id, true, $screen->post_type ); // TODO: ROLE SYSTEM
+ $authors_dropdown = '';
if ( $authors && count( $authors ) > 1 ) :
- $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1);
+ $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1, 'echo' => 0);
if ( $bulk )
- $users_opt['show_option_none'] = __('- No Change -');
-?>
-
-
-
-
+ $users_opt['show_option_none'] = __('— No Change —');
+ $authors_dropdown = '
';
+ $authors_dropdown .= '' . __( 'Author' ) . ' ';
+ $authors_dropdown .= wp_dropdown_users( $users_opt );
+ $authors_dropdown .= ' ';
-
-
+
@@ -1088,7 +962,7 @@ function inline_edit_row( $type ) {
-
+
@@ -1096,41 +970,49 @@ function inline_edit_row( $type ) {
-
+
-
+
+
+
+ labels->name) ?>
-
-
+
post_type, 'author' ) && $bulk )
echo $authors_dropdown;
?>
-
+hierarchical ) : ?>
$post->post_parent, 'name' => 'post_parent', 'show_option_none' => __('Main Page (no parent)'), 'option_none_value' => 0, 'sort_column'=> 'menu_order, post_title');
+ $dropdown_args = array('post_type' => $post_type_object->name, 'selected' => $post->post_parent, 'name' => 'post_parent', 'show_option_none' => __('Main Page (no parent)'), 'option_none_value' => 0, 'sort_column'=> 'menu_order, post_title');
if ( $bulk )
- $dropdown_args['show_option_no_change'] = __('- No Change -');
+ $dropdown_args['show_option_no_change'] = __('— No Change —');
$dropdown_args = apply_filters('quick_edit_dropdown_pages_args', $dropdown_args);
wp_dropdown_pages($dropdown_args);
?>
-
+post_type, 'page-attributes' ) ) :
+ if ( !$bulk ) : ?>
@@ -1143,67 +1025,80 @@ function inline_edit_row( $type ) {
-
+
-
+hierarchical ?>
+
+
+
+
-
-
+ labels->name) ?>
+
-
+
-
+
+
+post_type, 'comments' ) || post_type_supports( $screen->post_type, 'trackbacks' ) ) :
+ if ( $bulk ) : ?>
+ post_type, 'comments' ) ) : ?>
-
+
-
+ post_type, 'trackbacks' ) ) : ?>
-
+
+
+ post_type, 'comments' ) ) : ?>
-
+ post_type, 'trackbacks' ) ) : ?>
+
-
-
+
-
+
@@ -1217,14 +1112,14 @@ function inline_edit_row( $type ) {
-
+post_type && $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?>
-
+
@@ -1239,7 +1134,7 @@ function inline_edit_row( $type ) {
-
+
@@ -1249,23 +1144,24 @@ function inline_edit_row( $type ) {
foreach ( $columns as $column_name => $column_display_name ) {
if ( isset( $core_columns[$column_name] ) )
continue;
- do_action( $bulk ? 'bulk_edit_custom_box' : 'quick_edit_custom_box', $column_name, $type);
+ do_action( $bulk ? 'bulk_edit_custom_box' : 'quick_edit_custom_box', $column_name, $screen->post_type );
}
?>
-
+
-
+
+
@@ -1285,16 +1181,16 @@ function inline_edit_row( $type ) {
* @param unknown_type $post
*/
function get_inline_data($post) {
-
- if ( ! current_user_can('edit_' . $post->post_type, $post->ID) )
+ $post_type_object = get_post_type_object($post->post_type);
+ if ( ! current_user_can($post_type_object->cap->edit_post, $post->ID) )
return;
- $title = esc_attr($post->post_title);
+ $title = esc_attr( get_the_title( $post->ID ) );
echo '
' . $title . '
-
' . $post->post_name . '
+
' . apply_filters('editable_slug', $post->post_name) . '
' . $post->post_author . '
' . $post->ping_status . '
@@ -1307,17 +1203,27 @@ function get_inline_data($post) {
' . mysql2date( 's', $post->post_date, false ) . '
' . esc_html( $post->post_password ) . '
';
- if( $post->post_type == 'page' )
- echo '
-
' . $post->post_parent . '
-
' . esc_html( get_post_meta( $post->ID, '_wp_page_template', true ) ) . '
- ';
+ if ( $post_type_object->hierarchical )
+ echo '
' . $post->post_parent . '
';
- if( $post->post_type == 'post' )
- echo '
-
' . esc_html( str_replace( ',', ', ', get_tags_to_edit($post->ID) ) ) . '
-
' . implode( ',', wp_get_post_categories( $post->ID ) ) . '
-
' . (is_sticky($post->ID) ? 'sticky' : '') . '
';
+ if ( $post->post_type == 'page' )
+ echo '
' . esc_html( get_post_meta( $post->ID, '_wp_page_template', true ) ) . '
';
+
+ if ( $post_type_object->hierarchical )
+ echo '';
+
+ $taxonomy_names = get_object_taxonomies( $post->post_type );
+ foreach ( $taxonomy_names as $taxonomy_name) {
+ $taxonomy = get_taxonomy( $taxonomy_name );
+
+ if ( $taxonomy->hierarchical && $taxonomy->show_ui )
+ echo '
' . implode( ',', wp_get_object_terms( $post->ID, $taxonomy_name, array('fields'=>'ids')) ) . '
';
+ elseif ( $taxonomy->show_ui )
+ echo '
' . esc_html( str_replace( ',', ', ', get_terms_to_edit($post->ID, $taxonomy_name) ) ) . '
';
+ }
+
+ if ( !$post_type_object->hierarchical )
+ echo '
' . (is_sticky($post->ID) ? 'sticky' : '') . '
';
echo '
';
}
@@ -1344,8 +1250,6 @@ function post_rows( $posts = array() ) {
$post_ids[] = $a_post->ID;
$comment_pending_count = get_pending_comments_num($post_ids);
- if ( empty($comment_pending_count) )
- $comment_pending_count = array();
foreach ( $posts as $post ) {
if ( empty($comment_pending_count[$post->ID]) )
@@ -1365,7 +1269,7 @@ function post_rows( $posts = array() ) {
* @param unknown_type $mode
*/
function _post_row($a_post, $pending_comments, $mode) {
- global $post;
+ global $post, $current_user, $current_screen;
static $rowclass;
$global_post = $post;
@@ -1373,15 +1277,15 @@ function _post_row($a_post, $pending_comments, $mode) {
setup_postdata($post);
$rowclass = 'alternate' == $rowclass ? '' : 'alternate';
- global $current_user;
$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
$edit_link = get_edit_post_link( $post->ID );
$title = _draft_or_post_title();
+ $post_type_object = get_post_type_object($post->post_type);
?>
post_status ); ?> iedit' valign="top">
$column_display_name ) {
$class = "class=\"$column_name column-$column_name\"";
@@ -1395,7 +1299,7 @@ function _post_row($a_post, $pending_comments, $mode) {
case 'cb':
?>
- ID ) ) { ?>
+ cap->edit_post, $post->ID ) ) { ?>
- >ID ) ) { ?>
+ >cap->edit_post, $post->ID) && $post->post_status != 'trash' ) { ?>
ID) ) {
- $actions['edit'] = '' . __('Edit') . ' ';
- $actions['inline hide-if-no-js'] = '' . __('Quick Edit') . ' ';
+ if ( current_user_can($post_type_object->cap->edit_post, $post->ID) && 'trash' != $post->post_status ) {
+ $actions['edit'] = '' . __('Edit') . ' ';
+ $actions['inline hide-if-no-js'] = '' . __('Quick Edit') . ' ';
}
- if ( current_user_can('delete_post', $post->ID) ) {
- $actions['delete'] = "ID) . "' onclick=\"if ( confirm('" . esc_js(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 ( current_user_can($post_type_object->cap->delete_post, $post->ID) ) {
+ if ( 'trash' == $post->post_status )
+ $actions['untrash'] = "ID) ), 'untrash-' . $post->post_type . '_' . $post->ID ) . "'>" . __('Restore') . " ";
+ elseif ( EMPTY_TRASH_DAYS )
+ $actions['trash'] = "" . __('Trash') . " ";
+ if ( 'trash' == $post->post_status || !EMPTY_TRASH_DAYS )
+ $actions['delete'] = "" . __('Delete Permanently') . " ";
}
if ( in_array($post->post_status, array('pending', 'draft')) ) {
- if ( current_user_can('edit_post', $post->ID) )
- $actions['view'] = '' . __('Preview') . ' ';
- } else {
+ if ( current_user_can($post_type_object->cap->edit_post, $post->ID) )
+ $actions['view'] = '' . __('Preview') . ' ';
+ } elseif ( 'trash' != $post->post_status ) {
$actions['view'] = '' . __('View') . ' ';
}
$actions = apply_filters('post_row_actions', $actions, $post);
@@ -1523,7 +1432,7 @@ function _post_row($a_post, $pending_comments, $mode) {
case 'author':
?>
- >
+ >
- ID) ) { echo "" . __('Edit') . " "; } ?>
+ cap->edit_post, $post->ID) ) { echo "" . __('Edit') . " "; } ?>
- ID) ) { echo "ID) . "' class='delete'>" . __('Delete') . " "; } ?>
+ cap->delete_post, $post->ID) ) { echo "ID) . "' class='delete'>" . __('Delete') . " "; } ?>
ID;
$rowclass = 'alternate' == $rowclass ? '' : 'alternate';
- $posts_columns = get_column_headers('edit-pages');
- $hidden = get_hidden_columns('edit-pages');
+ $posts_columns = get_column_headers( $current_screen );
+ $hidden = get_hidden_columns( $current_screen );
$title = _draft_or_post_title();
+ $post_type = $page->post_type;
+ $post_type_object = get_post_type_object($post_type);
?>
$column_display_name) {
+foreach ( $posts_columns as $column_name => $column_display_name ) {
$class = "class=\"$column_name column-$column_name\"";
$style = '';
@@ -1618,7 +1529,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
case 'cb':
?>
-
+ cap->edit_post, $page->ID ) ) { ?>
$column_display_name) {
$attributes = 'class="post-title page-title column-title"' . $style;
$edit_link = get_edit_post_link( $page->ID );
?>
- >ID ) ) { ?>
+ >cap->edit_post, $page->ID) && $post->post_status != 'trash' ) { ?> labels->parent_item_colon . ' ' . esc_html($parent_name) : ''; ?>
ID) ) {
+ if ( current_user_can($post_type_object->cap->edit_post, $page->ID) && $post->post_status != 'trash' ) {
$actions['edit'] = '' . __('Edit') . ' ';
$actions['inline'] = '' . __('Quick Edit') . ' ';
}
- if ( current_user_can('delete_page', $page->ID) ) {
- $actions['delete'] = "ID) . "' onclick=\"if ( confirm('" . esc_js(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') . " ";
+ if ( current_user_can($post_type_object->cap->delete_post, $page->ID) ) {
+ if ( $post->post_status == 'trash' )
+ $actions['untrash'] = "post_type . '_' . $page->ID) . "'>" . __('Restore') . " ";
+ elseif ( EMPTY_TRASH_DAYS )
+ $actions['trash'] = "" . __('Trash') . " ";
+ if ( $post->post_status == 'trash' || !EMPTY_TRASH_DAYS )
+ $actions['delete'] = "post_type . '_' . $page->ID) . "'>" . __('Delete Permanently') . " ";
}
if ( in_array($post->post_status, array('pending', 'draft')) ) {
- if ( current_user_can('edit_page', $page->ID) )
- $actions['view'] = '' . __('Preview') . ' ';
- } else {
+ if ( current_user_can($post_type_object->cap->edit_post, $page->ID) )
+ $actions['view'] = '' . __('Preview') . ' ';
+ } elseif ( $post->post_status != 'trash' ) {
$actions['view'] = '' . __('View') . ' ';
}
$actions = apply_filters('page_row_actions', $actions, $page);
@@ -1706,7 +1622,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
case 'author':
?>
- >
+ >
post_parent == $page->ID ) {
$page->post_parent = 0;
- $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET post_parent = '0' WHERE ID = %d", $page->ID) );
+ $wpdb->update($wpdb->posts, array('post_parent' => 0), array('ID' => $page->ID));
clean_page_cache( $page->ID );
}
@@ -1810,12 +1726,9 @@ function page_rows($pages, $pagenum = 1, $per_page = 20) {
}
}
-/*
+/**
* Given a top level page ID, display the nested hierarchy of sub-pages
* together with paging support
- */
-/**
- * {@internal Missing Short Description}}
*
* @since unknown
*
@@ -1869,22 +1782,24 @@ function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_
}
/**
- * {@internal Missing Short Description}}
+ * Generate HTML for a single row on the users.php admin panel.
*
- * @since unknown
+ * @since 2.1.0
*
- * @param unknown_type $user_object
- * @param unknown_type $style
- * @param unknown_type $role
- * @return unknown
+ * @param object $user_object
+ * @param string $style Optional. Attributes added to the TR element. Must be sanitized.
+ * @param string $role Key for the $wp_roles array.
+ * @param int $numposts Optional. Post count to display for this user. Defaults to zero, as in, a new user has made zero posts.
+ * @return string
*/
-function user_row( $user_object, $style = '', $role = '' ) {
+function user_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
global $wp_roles;
$current_user = wp_get_current_user();
if ( !( is_object( $user_object) && is_a( $user_object, 'WP_User' ) ) )
$user_object = new WP_User( (int) $user_object );
+ $user_object = sanitize_user_object($user_object, 'display');
$email = $user_object->user_email;
$url = $user_object->user_url;
$short_url = str_replace( 'http://', '', $url );
@@ -1893,12 +1808,11 @@ function user_row( $user_object, $style = '', $role = '' ) {
$short_url = substr( $short_url, 0, -1 );
if ( strlen( $short_url ) > 35 )
$short_url = substr( $short_url, 0, 32 ).'...';
- $numposts = get_usernumposts( $user_object->ID );
$checkbox = '';
// Check if the user for this row is editable
- if ( current_user_can( 'edit_user', $user_object->ID ) ) {
+ if ( current_user_can( 'list_users' ) ) {
// Set up the user editing link
- // TODO: make profile/user-edit determination a seperate function
+ // TODO: make profile/user-edit determination a separate function
if ($current_user->ID == $user_object->ID) {
$edit_link = 'profile.php';
} else {
@@ -1908,9 +1822,18 @@ function user_row( $user_object, $style = '', $role = '' ) {
// Set up the hover actions for this user
$actions = array();
- $actions['edit'] = '' . __('Edit') . ' ';
- if ( $current_user->ID != $user_object->ID )
+
+ if ( current_user_can('edit_user', $user_object->ID) ) {
+ $edit = "$user_object->user_login ";
+ $actions['edit'] = '' . __('Edit') . ' ';
+ } else {
+ $edit = "$user_object->user_login ";
+ }
+
+ if ( !is_multisite() && $current_user->ID != $user_object->ID && current_user_can('delete_user', $user_object->ID) )
$actions['delete'] = "" . __('Delete') . " ";
+ if ( is_multisite() && $current_user->ID != $user_object->ID && current_user_can('remove_user', $user_object->ID) )
+ $actions['remove'] = "" . __('Remove') . " ";
$actions = apply_filters('user_row_actions', $actions, $user_object);
$action_count = count($actions);
$i = 0;
@@ -1953,7 +1876,7 @@ function user_row( $user_object, $style = '', $role = '' ) {
$r .= "$user_object->first_name $user_object->last_name ";
break;
case 'email':
- $r .= "$email ";
+ $r .= "$email ";
break;
case 'role':
$r .= "$role_name ";
@@ -1986,13 +1909,13 @@ function user_row( $user_object, $style = '', $role = '' ) {
*
* @since unknown
*
- * @param unknown_type $status
- * @param unknown_type $s
- * @param unknown_type $start
- * @param unknown_type $num
- * @param unknown_type $post
- * @param unknown_type $type
- * @return unknown
+ * @param string $status Comment status (approved, spam, trash, etc)
+ * @param string $s Term to search for
+ * @param int $start Offset to start at for pagination
+ * @param int $num Maximum number of comments to return
+ * @param int $post Post ID or 0 to return all comments
+ * @param string $type Comment type (comment, trackback, pingback, etc)
+ * @return array [0] contains the comments and [1] contains the total number of comments that match (ignoring $start and $num)
*/
function _wp_get_comment_list( $status = '', $s = false, $start, $num, $post = 0, $type = '' ) {
global $wpdb;
@@ -2004,61 +1927,65 @@ function _wp_get_comment_list( $status = '', $s = false, $start, $num, $post = 0
$index = '';
if ( 'moderated' == $status ) {
- $approved = "comment_approved = '0'";
+ $approved = "c.comment_approved = '0'";
$total = $count->moderated;
} elseif ( 'approved' == $status ) {
- $approved = "comment_approved = '1'";
+ $approved = "c.comment_approved = '1'";
$total = $count->approved;
} elseif ( 'spam' == $status ) {
- $approved = "comment_approved = 'spam'";
+ $approved = "c.comment_approved = 'spam'";
$total = $count->spam;
+ } elseif ( 'trash' == $status ) {
+ $approved = "c.comment_approved = 'trash'";
+ $total = $count->trash;
} else {
- $approved = "( comment_approved = '0' OR comment_approved = '1' )";
+ $approved = "( c.comment_approved = '0' OR c.comment_approved = '1' )";
$total = $count->moderated + $count->approved;
- $index = 'USE INDEX (comment_date_gmt)';
+ $index = 'USE INDEX (c.comment_date_gmt)';
}
if ( $post ) {
$total = '';
- $post = " AND comment_post_ID = '$post'";
- $orderby = "ORDER BY comment_date_gmt ASC LIMIT $start, $num";
+ $post = " AND c.comment_post_ID = '$post'";
} else {
$post = '';
- $orderby = "ORDER BY comment_date_gmt DESC LIMIT $start, $num";
}
+ $orderby = "ORDER BY c.comment_date_gmt DESC LIMIT $start, $num";
+
if ( 'comment' == $type )
- $typesql = "AND comment_type = ''";
- elseif ( 'pingback' == $type )
- $typesql = "AND comment_type = 'pingback'";
- elseif ( 'trackback' == $type )
- $typesql = "AND comment_type = 'trackback'";
+ $typesql = "AND c.comment_type = ''";
elseif ( 'pings' == $type )
- $typesql = "AND ( comment_type = 'pingback' OR comment_type = 'trackback' )";
+ $typesql = "AND ( c.comment_type = 'pingback' OR c.comment_type = 'trackback' )";
+ elseif ( 'all' == $type )
+ $typesql = '';
+ elseif ( !empty($type) )
+ $typesql = $wpdb->prepare("AND c.comment_type = %s", $type);
else
$typesql = '';
if ( !empty($type) )
$total = '';
+ $query = "FROM $wpdb->comments c LEFT JOIN $wpdb->posts p ON c.comment_post_ID = p.ID WHERE p.post_status != 'trash' ";
if ( $s ) {
$total = '';
$s = $wpdb->escape($s);
- $query = "FROM $wpdb->comments WHERE
- (comment_author LIKE '%$s%' OR
- comment_author_email LIKE '%$s%' OR
- comment_author_url LIKE ('%$s%') OR
- comment_author_IP LIKE ('%$s%') OR
- comment_content LIKE ('%$s%') ) AND
+ $query .= "AND
+ (c.comment_author LIKE '%$s%' OR
+ c.comment_author_email LIKE '%$s%' OR
+ c.comment_author_url LIKE ('%$s%') OR
+ c.comment_author_IP LIKE ('%$s%') OR
+ c.comment_content LIKE ('%$s%') ) AND
$approved
$typesql";
} else {
- $query = "FROM $wpdb->comments $index WHERE $approved $post $typesql";
+ $query .= "AND $approved $post $typesql";
}
$comments = $wpdb->get_results("SELECT * $query $orderby");
if ( '' === $total )
- $total = $wpdb->get_var("SELECT COUNT(comment_ID) $query");
+ $total = $wpdb->get_var("SELECT COUNT(c.comment_ID) $query");
update_comment_cache($comments);
@@ -2080,8 +2007,10 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
$comment = get_comment( $comment_id );
$post = get_post($comment->comment_post_ID);
$the_comment_status = wp_get_comment_status($comment->comment_ID);
- $user_can = current_user_can('edit_post', $post->ID);
+ $post_type_object = get_post_type_object($post->post_type);
+ $user_can = current_user_can($post_type_object->cap->edit_post, $post->ID);
+ $comment_url = esc_url(get_comment_link($comment->comment_ID));
$author_url = get_comment_author_url();
if ( 'http://' == $author_url )
$author_url = '';
@@ -2095,10 +2024,18 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
else
$ptime = mysql2date(__('Y/m/d \a\t g:i A'), $comment->comment_date );
- $delete_url = esc_url( wp_nonce_url( "comment.php?action=deletecomment&p=$post->ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) );
- $approve_url = esc_url( wp_nonce_url( "comment.php?action=approvecomment&p=$post->ID&c=$comment->comment_ID", "approve-comment_$comment->comment_ID" ) );
- $unapprove_url = esc_url( wp_nonce_url( "comment.php?action=unapprovecomment&p=$post->ID&c=$comment->comment_ID", "unapprove-comment_$comment->comment_ID" ) );
- $spam_url = esc_url( wp_nonce_url( "comment.php?action=deletecomment&dt=spam&p=$post->ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) );
+ if ( $user_can ) {
+ $del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) );
+ $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) );
+
+ $approve_url = esc_url( "comment.php?action=approvecomment&p=$post->ID&c=$comment->comment_ID&$approve_nonce" );
+ $unapprove_url = esc_url( "comment.php?action=unapprovecomment&p=$post->ID&c=$comment->comment_ID&$approve_nonce" );
+ $spam_url = esc_url( "comment.php?action=spamcomment&p=$post->ID&c=$comment->comment_ID&$del_nonce" );
+ $unspam_url = esc_url( "comment.php?action=unspamcomment&p=$post->ID&c=$comment->comment_ID&$del_nonce" );
+ $trash_url = esc_url( "comment.php?action=trashcomment&p=$post->ID&c=$comment->comment_ID&$del_nonce" );
+ $untrash_url = esc_url( "comment.php?action=untrashcomment&p=$post->ID&c=$comment->comment_ID&$del_nonce" );
+ $delete_url = esc_url( "comment.php?action=deletecomment&p=$post->ID&c=$comment->comment_ID&$del_nonce" );
+ }
echo "