mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Renaming. object and subpost are now attachment. post_type is post_mime_type.
git-svn-id: https://develop.svn.wordpress.org/trunk@3092 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -437,16 +437,16 @@ function _page_level_out($parent, $page_tree, $args, $depth = 0, $echo = true) {
|
||||
return $output;
|
||||
}
|
||||
|
||||
function prepend_object($content) {
|
||||
function prepend_attachment($content) {
|
||||
global $post;
|
||||
|
||||
$p = '<p class="subpostobject">';
|
||||
$p = '<p class="attachment">';
|
||||
|
||||
if ( '' != $post->guid ) {
|
||||
if ( substr($post->post_type, 0, 6) == 'image/' )
|
||||
$p .= '<a href="' . $post->guid . '" title="Click for full-size image" ><img class="subpostimage" src="' . $post->guid . '" alt="' . $post->post_title . '" /></a>';
|
||||
if ( substr($post->post_mime_type, 0, 6) == 'image/' )
|
||||
$p .= '<a href="' . $post->guid . '" title="Click for full-size image" ><img class="attachmentimage" src="' . $post->guid . '" alt="' . $post->post_title . '" /></a>';
|
||||
else
|
||||
$p .= __('Attachment') . ' (' . $post->post_type . ')';
|
||||
$p .= __('Attachment') . ' (' . $post->post_mime_type . ')';
|
||||
} else {
|
||||
$p .= __('Missing attachment');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user