Changeset 12539
- Timestamp:
- 12/24/2009 04:08:15 PM (15 years ago)
- Location:
- branches/2.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.8/wp-admin/includes/template.php
r11720 r12539 2096 2096 $ptime = mysql2date(__('Y/m/d \a\t g:i A'), $comment->comment_date ); 2097 2097 2098 $comment_url = esc_url(get_comment_link($comment->comment_ID)); 2098 2099 $delete_url = esc_url( wp_nonce_url( "comment.php?action=deletecomment&p=$post->ID&c=$comment->comment_ID", "delete-comment_$comment->comment_ID" ) ); 2099 2100 $approve_url = esc_url( wp_nonce_url( "comment.php?action=approvecomment&p=$post->ID&c=$comment->comment_ID", "approve-comment_$comment->comment_ID" ) ); … … 2123 2124 echo "<td $attributes>"; 2124 2125 echo '<div id="submitted-on">'; 2125 printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), get_comment_link($comment->comment_ID), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));2126 printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), $comment_url, get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia'))); 2126 2127 echo '</div>'; 2127 2128 comment_text(); ?> … … 2141 2142 if ( $comment_status && 'all' != $comment_status ) { // not looking at all comments 2142 2143 if ( 'approved' == $the_comment_status ) { 2143 $actions['unapprove'] = "<a href='$unapprove_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment&new=unapproved vim-u vim-destructive' title='" . __( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>';2144 $actions['unapprove'] = "<a href='$unapprove_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment&new=unapproved vim-u vim-destructive' title='" . esc_attr__( 'Unapprove this comment' ) . "'>" . __( 'Unapprove' ) . '</a>'; 2144 2145 unset($actions['approve']); 2145 2146 } else { 2146 $actions['approve'] = "<a href='$approve_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment&new=approved vim-a vim-destructive' title='" . __( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>';2147 $actions['approve'] = "<a href='$approve_url' class='delete:the-comment-list:comment-$comment->comment_ID:e7e7d3:action=dim-comment&new=approved vim-a vim-destructive' title='" . esc_attr__( 'Approve this comment' ) . "'>" . __( 'Approve' ) . '</a>'; 2147 2148 unset($actions['unapprove']); 2148 2149 } 2149 2150 } 2150 2151 if ( 'spam' != $the_comment_status ) 2151 $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . __( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>';2152 $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>'; 2152 2153 $actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID delete vim-d vim-destructive'>" . __('Delete') . '</a>'; 2153 2154 $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . __('Edit comment') . "'>". __('Edit') . '</a>'; … … 2215 2216 echo '<div class="response-links"><span class="post-com-count-wrapper">'; 2216 2217 echo $post_link . '<br />'; 2217 $pending_phrase = sprintf( __('%s pending'), number_format( $pending_comments ));2218 $pending_phrase = esc_attr(sprintf( __('%s pending'), number_format( $pending_comments ) )); 2218 2219 if ( $pending_comments ) 2219 2220 echo '<strong>'; -
branches/2.8/wp-includes/pluggable.php
r11616 r12539 100 100 101 101 if ( ! $user = wp_validate_auth_cookie() ) { 102 if ( empty($_COOKIE[LOGGED_IN_COOKIE]) || !$user = wp_validate_auth_cookie($_COOKIE[LOGGED_IN_COOKIE], 'logged_in') ) {102 if ( is_admin() || empty($_COOKIE[LOGGED_IN_COOKIE]) || !$user = wp_validate_auth_cookie($_COOKIE[LOGGED_IN_COOKIE], 'logged_in') ) { 103 103 wp_set_current_user(0); 104 104 return false;
Note: See TracChangeset
for help on using the changeset viewer.