Ticket #18491: 18491.patch
| File 18491.patch, 540 bytes (added by SergeyBiryukov, 21 months ago) |
|---|
-
wp-includes/post-template.php
1152 1152 $id = intval($id); 1153 1153 $_post = & get_post( $id ); 1154 1154 1155 if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) )1155 if ( empty($_post) || ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) ) 1156 1156 return __('Missing Attachment'); 1157 1157 1158 1158 if ( $permalink )
