WordPress.org

Make WordPress Core

Changeset 13288


Ignore:
Timestamp:
02/22/10 08:26:18 (4 years ago)
Author:
dd32
Message:

Links to Comment on Comments page, even for users that cannot modify it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r13282 r13288  
    20122012    $user_can = current_user_can($post_type_object->edit_cap, $post->ID); 
    20132013 
     2014    $comment_url = esc_url(get_comment_link($comment->comment_ID)); 
    20142015    $author_url = get_comment_author_url(); 
    20152016    if ( 'http://' == $author_url ) 
     
    20292030        $approve_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "approve-comment_$comment->comment_ID" ) ); 
    20302031 
    2031         $comment_url = esc_url(get_comment_link($comment->comment_ID)); 
    20322032        $approve_url = esc_url( "comment.php?action=approvecomment&p=$post->ID&c=$comment->comment_ID&$approve_nonce" ); 
    20332033        $unapprove_url = esc_url( "comment.php?action=unapprovecomment&p=$post->ID&c=$comment->comment_ID&$approve_nonce" ); 
Note: See TracChangeset for help on using the changeset viewer.