Make WordPress Core


Ignore:
Timestamp:
11/15/2005 10:55:24 PM (21 years ago)
Author:
ryan
Message:

Renaming. object and subpost are now attachment. post_type is post_mime_type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-post.php

    r2991 r3092  
    438438}
    439439
    440 function prepend_object($content) {
     440function prepend_attachment($content) {
    441441        global $post;
    442442
    443         $p = '<p class="subpostobject">';
     443        $p = '<p class="attachment">';
    444444
    445445        if ( '' != $post->guid ) {
    446                 if ( substr($post->post_type, 0, 6) == 'image/' )
    447                         $p .= '<a href="' . $post->guid . '" title="Click for full-size image" ><img class="subpostimage" src="' . $post->guid . '" alt="' . $post->post_title . '" /></a>';
     446                if ( substr($post->post_mime_type, 0, 6) == 'image/' )
     447                        $p .= '<a href="' . $post->guid . '" title="Click for full-size image" ><img class="attachmentimage" src="' . $post->guid . '" alt="' . $post->post_title . '" /></a>';
    448448                else
    449                         $p .= __('Attachment') . ' (' . $post->post_type . ')';
     449                        $p .= __('Attachment') . ' (' . $post->post_mime_type . ')';
    450450        } else {
    451451                $p .= __('Missing attachment');
Note: See TracChangeset for help on using the changeset viewer.