Make WordPress Core


Ignore:
Timestamp:
03/11/2008 09:09:07 PM (18 years ago)
Author:
ryan
Message:

Fix comment bubble links for attachments and pages. Props mdawaffe. fixes #6169

File:
1 edited

Legend:

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

    r7218 r7251  
    9494                break;
    9595
     96        case 'comments':
     97                ?>
     98                <td style="text-align: center">
     99                <?php
     100                $left = get_pending_comments_num( $post->ID );
     101                $pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
     102                if ( $left )
     103                        echo '<strong>';
     104                comments_number("<a href='upload.php?attachment_id=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='upload.php?attachment_id=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='upload.php?attachment_id=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>');
     105                if ( $left )
     106                        echo '</strong>';
     107                ?>
     108                </td>
     109                <?php
     110                break;
     111
    96112        case 'location':
    97113                ?>
Note: See TracChangeset for help on using the changeset viewer.