WordPress.org

Make WordPress Core

Changeset 12876


Ignore:
Timestamp:
01/27/10 14:44:47 (4 years ago)
Author:
ryan
Message:

Fix attachment view link title attribute. Props chdorner. fixes #10571

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-attachment-rows.php

    r12591 r12876  
    102102            } 
    103103        } 
    104         if ( !$is_trash ) 
     104        if ( !$is_trash ) { 
     105            $title =_draft_or_post_title($post->post_parent); 
    105106            $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 
     107        } 
    106108        $actions = apply_filters( 'media_row_actions', $actions, $post ); 
    107109        $action_count = count($actions); 
Note: See TracChangeset for help on using the changeset viewer.