Changeset 11930 for trunk/wp-app.php
- Timestamp:
- 09/14/2009 02:03:32 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-app.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-app.php
r11812 r11930 782 782 783 783 $location = get_post_meta($entry['ID'], '_wp_attached_file', true); 784 $location = get_option ('upload_path') . '/' . $location; 784 $location = get_option ('upload_path') . '/' . $location; 785 785 $filetype = wp_check_filetype($location); 786 786 … … 792 792 header('Connection: close'); 793 793 794 if ($fp = fopen($location, "rb")) { 795 status_header('200'); 796 header('Content-Type: ' . $entry['post_mime_type']); 794 if ($fp = fopen($location, "rb")) { 795 status_header('200'); 796 header('Content-Type: ' . $entry['post_mime_type']); 797 797 header('Connection: close'); 798 798
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)