From bca6199b30e83752d46cd9933315ee5e7ff45795 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 14 Oct 2008 17:29:38 +0000 Subject: [PATCH] Punt media box git-svn-id: https://develop.svn.wordpress.org/trunk@9171 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-form-advanced.php | 44 --------------------------------- 1 file changed, 44 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index d273f5c1ca..3224845a51 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -210,50 +210,6 @@ function post_tags_meta_box($post) { } add_meta_box('tagsdiv', __('Tags'), 'post_tags_meta_box', 'post', 'side', 'core'); -/** - * Display add post media and current post media form fields and images. - * - * @todo Complete. - * @since 2.7.0 - * - * @param object $post - */ -function post_media_meta_box($post) { - echo "

This feature isn't fully functional in this prototype.

"; - - if ( empty( $post->ID ) ) - return; - - $atts = get_children( array( - 'post_parent' => $post->ID, - 'post_type' => 'attachment' - ) ); - - if ( !$atts ) { - _e( 'No media.' ); - return; - } - - foreach ( $atts as $att ) { - if ( $thumb = wp_get_attachment_image( $att->ID, array(60, 45), true ) ) { -?> - post_title)); ?>"> - - - -$att->post_title"; - - echo "Remove | "; - echo "Edit"; - - echo "
"; - } - -} -add_meta_box( 'mediadiv', __('Media' ), 'post_media_meta_box', 'post', 'side', 'core' ); - /** * Display post categories form fields. *