WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

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