WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload-functions.php

    r5057 r5267  
    1414    if ( isset($attachment_data['width']) )
    1515        list($width,$height) = wp_shrink_dimensions($attachment_data['width'], $attachment_data['height'], 171, 128);
    16        
     16
    1717    ob_start();
    1818        the_title();
    1919        $post_title = attribute_escape(ob_get_contents());
    2020    ob_end_clean();
    21     $post_content = apply_filters( 'content_edit_pre', $post->post_content );
    22    
     21    $post_content = attribute_escape(apply_filters( 'content_edit_pre', $post->post_content ));
     22
    2323    $class = 'text';
    2424    $innerHTML = get_attachment_innerHTML( $id, false, $dims );
     
    3636
    3737    if ( $href )
    38         $r .= "<a id='file-link-$id' href='" . clean_url($href) ."' title='$post_title' class='file-link $class'>\n";
     38        $r .= "<a id='file-link-$id' href='$href' title='$post_title' class='file-link $class'>\n";
    3939    if ( $href || $image_src )
    4040        $r .= "\t\t\t$innerHTML";
     
    286286    global $wpdb, $action, $paged;
    287287    $old_vars = compact( 'paged' );
    288    
     288
    289289    switch ( $action ) :
    290290    case 'edit' :
     
    356356    }
    357357}
     358
     359?>
Note: See TracChangeset for help on using the changeset viewer.