Make WordPress Core


Ignore:
Timestamp:
10/19/2009 08:23:35 PM (15 years ago)
Author:
azaozz
Message:

Merge set-post-thumbnail-handler.js with post.js, move Post Thumbnail meta-box to /includes/meta-boxes.php, see #10928

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r12022 r12060  
    808808<?php
    809809}
     810
     811/**
     812 * Display post thumbnail meta box.
     813 *
     814 * @since 2.9.0
     815 */
     816function post_thumbnail_meta_box() {
     817    global $post;
     818    $thumbnail_id = get_post_meta( $post->ID, '_thumbnail_id', true );
     819    echo _wp_post_thumbnail_html( $thumbnail_id );
     820}
Note: See TracChangeset for help on using the changeset viewer.