WordPress.org

Make WordPress Core

Changeset 11751


Ignore:
Timestamp:
07/30/2009 03:41:40 PM (9 years ago)
Author:
azaozz
Message:

Don't show edit link for comments when the user cannot edit them, props filosofo, fixes #10520 for 2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-includes/link-template.php

    r11687 r11751  
    769769    global $comment, $post;
    770770
    771     if ( $post->post_type == 'attachment' ) {
    772     } elseif ( $post->post_type == 'page' ) {
     771    if ( $post->post_type == 'page' ) {
    773772        if ( !current_user_can( 'edit_page', $post->ID ) )
    774773            return;
Note: See TracChangeset for help on using the changeset viewer.