WordPress.org

Make WordPress Core

Changeset 8339


Ignore:
Timestamp:
07/15/2008 03:41:00 AM (10 years ago)
Author:
mdawaffe
Message:

crazyhorse: media library - move actions under title and replace description with tags

Location:
branches/crazyhorse/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-admin/edit-attachment-rows.php

    r8338 r8339  
    6666        <td><strong><a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />
    6767        <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?>
     68        <p>
     69        <a href="media.php?action=edit&amp;attachment_id=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php _e('Edit'); ?></a> |
     70        <a href="<?php the_permalink(); ?>"><?php _e('Get permalink'); ?></a> |
     71        <a href="#" class="delete"><?php _e('Delete'); ?></a>
     72        </p>
    6873        <?php do_action('manage_media_media_column', $post->ID); ?>
    6974        </td>
     75        <?php
     76        break;
     77
     78    case 'tags':
     79        ?>
     80        <td><?php
     81        $tags = get_the_tags();
     82        if ( !empty( $tags ) ) {
     83            $out = array();
     84            foreach ( $tags as $c )
     85                $out[] = "<a href='edit.php?tag=$c->slug'> " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . "</a>";
     86            echo join( ', ', $out );
     87        } else {
     88            _e('No Tags');
     89        }
     90        ?></td>
    7091        <?php
    7192        break;
  • branches/crazyhorse/wp-admin/includes/template.php

    r8335 r8339  
    366366    $posts_columns['icon'] = '';
    367367    $posts_columns['media'] = _c('Media|media column header');
    368     $posts_columns['desc'] = _c('Description|media column header');
     368    $posts_columns['tags'] = _c('Tags|media column header');
     369//  $posts_columns['desc'] = _c('Description|media column header');
    369370    $posts_columns['date'] = _c('Date Added|media column header');
    370371    $posts_columns['parent'] = _c('Appears with|media column header');
    371372    $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>';
    372     $posts_columns['actions'] = _c('Actions|media column header');
     373//  $posts_columns['actions'] = _c('Actions|media column header');
    373374    $posts_columns = apply_filters('manage_media_columns', $posts_columns);
    374375
Note: See TracChangeset for help on using the changeset viewer.