WordPress.org

Make WordPress Core

Changeset 7374


Ignore:
Timestamp:
03/18/2008 02:28:43 AM (10 years ago)
Author:
ryan
Message:

Add title attribute to view page link. see #6082

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r7367 r7374  
    354354    $class = ('alternate' == $class ) ? '' : 'alternate';
    355355    $posts_columns = wp_manage_pages_columns();
     356    $title = get_the_title();
     357    if ( empty($title) )
     358        $title = __('(no title)');
    356359?>
    357360  <tr id='page-<?php echo $id; ?>' class='<?php echo $class; ?>'>
     
    393396        }
    394397        ?>
    395         <td><a href="<?php the_permalink(); ?>" rel="permalink" title="<?php echo $t_time ?>"><?php echo $h_time ?></a></td>
     398        <td><abbr title="<?php echo $t_time ?>"><?php echo $h_time ?></abbr></td>
    396399        <?php
    397400        break;
    398401    case 'title':
    399         $title = get_the_title();
    400         if ( empty($title) )
    401             $title = __('(no title)');
    402402        ?>
    403403        <td><strong><a class="row-title" href="page.php?action=edit&amp;post=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a></strong>
     
    431431        ?>
    432432        <td>
     433        <a href="<?php the_permalink(); ?>" title="<?php echo attribute_escape(sprintf(__('View "%s"'), $title)); ?>" rel="permalink">
    433434        <?php
    434435        switch ( $page->post_status ) {
     
    448449        }
    449450        ?>
     451        </a>
    450452        </td>
    451453        <?php
Note: See TracChangeset for help on using the changeset viewer.