<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[15628] trunk/wp-admin: Remove unused edit-*-rows.php files.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/15628">15628</a></dd>
<dt>Author</dt> <dd>scribu</dd>
<dt>Date</dt> <dd>2010-09-18 17:17:29 +0000 (Sat, 18 Sep 2010)</dd>
</dl>
<h3>Log Message</h3>
<pre>Remove unused edit-*-rows.php files. See <a href="http://trac.wordpress.org/ticket/14579">#14579</a></pre>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkwpadmineditattachmentrowsphp">trunk/wp-admin/edit-attachment-rows.php</a></li>
<li><a href="#trunkwpadmineditpostrowsphp">trunk/wp-admin/edit-post-rows.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmineditattachmentrowsphp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/edit-attachment-rows.php (15627 => 15628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-attachment-rows.php        2010-09-17 22:35:05 UTC (rev 15627)
+++ trunk/wp-admin/edit-attachment-rows.php        2010-09-18 17:17:29 UTC (rev 15628)
</span><span class="lines">@@ -1,239 +0,0 @@
</span><del>-<?php
-/**
- * Edit attachments table for inclusion in administration panels.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-// don't load directly
-if ( !defined('ABSPATH') )
-        die('-1');
-
-if ( have_posts() ) { ?>
-<table class="widefat fixed" cellspacing="0">
-        <thead>
-        <tr>
-<?php print_column_headers('upload'); ?>
-        </tr>
-        </thead>
-
-        <tfoot>
-        <tr>
-<?php print_column_headers('upload', false); ?>
-        </tr>
-        </tfoot>
-
-        <tbody id="the-list" class="list:post">
-<?php
-add_filter('the_title','esc_html');
-$alt = '';
-$posts_columns = get_column_headers('upload');
-$hidden = get_hidden_columns('upload');
-
-while ( have_posts() ) : the_post();
-
-if ( $is_trash && $post->post_status != 'trash' )
-        continue;
-elseif ( !$is_trash && $post->post_status == 'trash' )
-        continue;
-
-$alt = ( 'alternate' == $alt ) ? '' : 'alternate';
-
-$post_owner = ( get_current_user_id() == $post->post_author ? 'self' : 'other' );
-$att_title = _draft_or_post_title();
-?>
-        <tr id='post-<?php echo $id; ?>' class='<?php echo trim( $alt . ' author-' . $post_owner . ' status-' . $post->post_status ); ?>' valign="top">
-
-<?php
-foreach ($posts_columns as $column_name => $column_display_name ) {
-        $class = "class=\"$column_name column-$column_name\"";
-
-        $style = '';
-        if ( in_array($column_name, $hidden) )
-                $style = ' style="display:none;"';
-
-        $attributes = "$class$style";
-
-        switch($column_name) {
-
-        case 'cb':
-                ?>
-                <th scope="row" class="check-column"><?php if ( current_user_can('edit_post', $post->ID) ) { ?><input type="checkbox" name="media[]" value="<?php the_ID(); ?>" /><?php } ?></th>
-                <?php
-                break;
-
-        case 'icon':
-                $attributes = 'class="column-icon media-icon"' . $style;
-                ?>
-                <td <?php echo $attributes ?>><?php
-                        if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) {
-                                if ( $is_trash ) echo $thumb;
-                                else {
-?>
-                                <a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $att_title)); ?>">
-                                        <?php echo $thumb; ?>
-                                </a>
-
-<?php                        }
-                        }
-                ?></td>
-                <?php
-                // TODO
-                break;
-
-        case 'media':
-                ?>
-                <td <?php echo $attributes ?>><strong><?php if ( $is_trash ) echo $att_title; else { ?><a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $att_title)); ?>"><?php echo $att_title; ?></a><?php } ?></strong>
-                <p>
-                <?php
-                if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
-                        echo esc_html( strtoupper( $matches[1] ) );
-                else
-                        echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
-                ?>
-                </p>
-                <?php
-                $actions = array();
-                if ( current_user_can('edit_post', $post->ID) && !$is_trash )
-                        $actions['edit'] = '<a href="' . get_edit_post_link($post->ID, true) . '">' . __('Edit') . '</a>';
-                if ( current_user_can('delete_post', $post->ID) ) {
-                        if ( $is_trash )
-                                $actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=untrash&amp;post=$post->ID", 'untrash-attachment_' . $post->ID) . "'>" . __('Restore') . "</a>";
-                        elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH )
-                                $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=trash&amp;post=$post->ID", 'trash-attachment_' . $post->ID) . "'>" . __('Trash') . "</a>";
-                        if ( $is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) {
-                                $delete_ays = (!$is_trash && !MEDIA_TRASH) ? " onclick='return showNotice.warn();'" : '';
-                                $actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url("post.php?action=delete&amp;post=$post->ID", 'delete-attachment_' . $post->ID) . "'>" . __('Delete Permanently') . "</a>";
-                        }
-                }
-                if ( !$is_trash ) {
-                        $title =_draft_or_post_title($post->post_parent);
-                        $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . __('View') . '</a>';
-                }
-                $actions = apply_filters( 'media_row_actions', $actions, $post );
-                $action_count = count($actions);
-                $i = 0;
-                echo '<div class="row-actions">';
-                foreach ( $actions as $action => $link ) {
-                        ++$i;
-                        ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
-                        echo "<span class='$action'>$link$sep</span>";
-                }
-                echo '</div>';
-                ?></td>
-                <?php
-                break;
-
-        case 'author':
-                ?>
-                <td <?php echo $attributes ?>><?php the_author() ?></td>
-                <?php
-                break;
-
-        case 'tags':
-                ?>
-                <td <?php echo $attributes ?>><?php
-                $tags = get_the_tags();
-                if ( !empty( $tags ) ) {
-                        $out = array();
-                        foreach ( $tags as $c )
-                                $out[] = "<a href='edit.php?tag=$c->slug'> " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . "</a>";
-                        echo join( ', ', $out );
-                } else {
-                        _e('No Tags');
-                }
-                ?></td>
-                <?php
-                break;
-
-        case 'desc':
-                ?>
-                <td <?php echo $attributes ?>><?php echo has_excerpt() ? $post->post_excerpt : ''; ?></td>
-                <?php
-                break;
-
-        case 'date':
-                if ( '0000-00-00 00:00:00' == $post->post_date && 'date' == $column_name ) {
-                        $t_time = $h_time = __('Unpublished');
-                } else {
-                        $t_time = get_the_time(__('Y/m/d g:i:s A'));
-                        $m_time = $post->post_date;
-                        $time = get_post_time( 'G', true, $post, false );
-                        if ( ( abs($t_diff = time() - $time) ) < 86400 ) {
-                                if ( $t_diff < 0 )
-                                        $h_time = sprintf( __('%s from now'), human_time_diff( $time ) );
-                                else
-                                        $h_time = sprintf( __('%s ago'), human_time_diff( $time ) );
-                        } else {
-                                $h_time = mysql2date(__('Y/m/d'), $m_time);
-                        }
-                }
-                ?>
-                <td <?php echo $attributes ?>><?php echo $h_time ?></td>
-                <?php
-                break;
-
-        case 'parent':
-                if ( $post->post_parent > 0 ) {
-                        if ( get_post($post->post_parent) ) {
-                                $title =_draft_or_post_title($post->post_parent);
-                        }
-                        ?>
-                        <td <?php echo $attributes ?>><strong><a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"><?php echo $title ?></a></strong>, <?php echo get_the_time(__('Y/m/d')); ?></td>
-                        <?php
-                } else {
-                        ?>
-                        <td <?php echo $attributes ?>><?php _e('(Unattached)'); ?><br />
-                        <a class="hide-if-no-js" onclick="findPosts.open('media[]','<?php echo $post->ID ?>');return false;" href="#the-list"><?php _e('Attach'); ?></a></td>
-                        <?php
-                }
-
-                break;
-
-        case 'comments':
-                $attributes = 'class="comments column-comments num"' . $style;
-                ?>
-                <td <?php echo $attributes ?>><div class="post-com-count-wrapper">
-                <?php
-                $left = get_pending_comments_num( $post->ID );
-                $pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
-                if ( $left )
-                        echo '<strong>';
-                comments_number("<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('0', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('1', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link: % will be substituted by comment count */ _x('%', 'comment count') . '</span></a>');
-                if ( $left )
-                        echo '</strong>';
-                ?>
-                </div></td>
-                <?php
-                break;
-
-        case 'actions':
-                ?>
-                <td <?php echo $attributes ?>>
-                <a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php echo esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $att_title)); ?>"><?php _e('Edit'); ?></a> |
-                <a href="<?php the_permalink(); ?>"><?php _e('Get permalink'); ?></a>
-                </td>
-                <?php
-                break;
-
-        default:
-                ?>
-                <td <?php echo $attributes ?>><?php do_action('manage_media_custom_column', $column_name, $id); ?></td>
-                <?php
-                break;
-        }
-}
-?>
-        </tr>
-<?php endwhile; ?>
-        </tbody>
-</table>
-<?php } else { ?>
-
-<p><?php _e('No media attachments found.') ?></p>
-
-<?php
-} // end if ( have_posts() )
-?>
-
</del></span></pre></div>
<a id="trunkwpadmineditpostrowsphp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/edit-post-rows.php (15627 => 15628)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-post-rows.php        2010-09-17 22:35:05 UTC (rev 15627)
+++ trunk/wp-admin/edit-post-rows.php        2010-09-18 17:17:29 UTC (rev 15628)
</span><span class="lines">@@ -1,34 +0,0 @@
</span><del>-<?php
-/**
- * Edit posts rows table for inclusion in administration panels.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-// don't load directly
-if ( !defined('ABSPATH') )
-        die('-1');
-?>
-<table class="widefat <?php echo $post_type_object->hierarchical ? 'page' : 'post'; ?> fixed" cellspacing="0">
-        <thead>
-        <tr>
-<?php print_column_headers( $current_screen ); ?>
-        </tr>
-        </thead>
-
-        <tfoot>
-        <tr>
-<?php print_column_headers($current_screen, false); ?>
-        </tr>
-        </tfoot>
-
-        <tbody>
-<?php
-if ( $post_type_object->hierarchical )
-        page_rows($posts, $pagenum, $per_page);
-else
-        post_rows();
-?>
-        </tbody>
-</table>
</del><span class="cx">\ No newline at end of file
</span></span></pre>
</div>
</div>
</body>
</html>