Fix pagination on the Unattached tab in the media library, show Attach in the "Attached to" column for orphan attachments

git-svn-id: https://develop.svn.wordpress.org/trunk@12196 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-11-17 03:08:38 +00:00
parent 51f2c4d17d
commit 3f51751c4d
5 changed files with 24 additions and 18 deletions
+2 -1
View File
@@ -173,7 +173,8 @@ foreach ($posts_columns as $column_name => $column_display_name ) {
<?php
} else {
?>
<td <?php echo $attributes ?>>&nbsp;</td>
<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
}