WordPress.org

Make WordPress Core

Ticket #12855: media.php.patch

File media.php.patch, 895 bytes (added by momo360modena, 5 years ago)
  • Users/amaury/Desktop/SVN/WPtrunk/wp-admin/includes/media.php

     
    11331133                        $output .= "\n<div id='media-item-$id' class='media-item child-of-$attachment->post_parent preloaded'><div class='progress'><div class='bar'></div></div><div id='media-upload-error-$id'></div><div class='filename'></div>$item\n</div>"; 
    11341134        } 
    11351135 
    1136         return $output; 
     1136        return apply_filters( 'get_media_items', $output, $post_id, $errors ); 
    11371137} 
    11381138 
    11391139/** 
     
    13531353                $item .= "\t<input type='hidden' name='$parent_name' id='$parent_name' value='$parent' />\n"; 
    13541354        } 
    13551355 
    1356         return $item; 
     1356        return apply_filters( 'get_media_item', $item, $attachment_id, $args ); 
    13571357} 
    13581358 
    13591359/**