Make WordPress Core

Changeset 11752


Ignore:
Timestamp:
07/30/2009 03:43:04 PM (16 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

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

    r11686 r11752  
    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.