Add title attribute to view page link. see #6082
git-svn-id: https://develop.svn.wordpress.org/trunk@7374 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c844b43f0e
commit
379ce33d07
|
@ -353,6 +353,9 @@ function display_page_row( $page, &$children_pages, $level = 0 ) {
|
||||||
$id = (int) $page->ID;
|
$id = (int) $page->ID;
|
||||||
$class = ('alternate' == $class ) ? '' : 'alternate';
|
$class = ('alternate' == $class ) ? '' : 'alternate';
|
||||||
$posts_columns = wp_manage_pages_columns();
|
$posts_columns = wp_manage_pages_columns();
|
||||||
|
$title = get_the_title();
|
||||||
|
if ( empty($title) )
|
||||||
|
$title = __('(no title)');
|
||||||
?>
|
?>
|
||||||
<tr id='page-<?php echo $id; ?>' class='<?php echo $class; ?>'>
|
<tr id='page-<?php echo $id; ?>' class='<?php echo $class; ?>'>
|
||||||
|
|
||||||
|
@ -392,13 +395,10 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<td><a href="<?php the_permalink(); ?>" rel="permalink" title="<?php echo $t_time ?>"><?php echo $h_time ?></a></td>
|
<td><abbr title="<?php echo $t_time ?>"><?php echo $h_time ?></abbr></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 'title':
|
case 'title':
|
||||||
$title = get_the_title();
|
|
||||||
if ( empty($title) )
|
|
||||||
$title = __('(no title)');
|
|
||||||
?>
|
?>
|
||||||
<td><strong><a class="row-title" href="page.php?action=edit&post=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a></strong>
|
<td><strong><a class="row-title" href="page.php?action=edit&post=<?php the_ID(); ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a></strong>
|
||||||
<?php if ('private' == $page->post_status) _e(' — <strong>Private</strong>'); ?></td>
|
<?php if ('private' == $page->post_status) _e(' — <strong>Private</strong>'); ?></td>
|
||||||
|
@ -430,6 +430,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
|
||||||
case 'status':
|
case 'status':
|
||||||
?>
|
?>
|
||||||
<td>
|
<td>
|
||||||
|
<a href="<?php the_permalink(); ?>" title="<?php echo attribute_escape(sprintf(__('View "%s"'), $title)); ?>" rel="permalink">
|
||||||
<?php
|
<?php
|
||||||
switch ( $page->post_status ) {
|
switch ( $page->post_status ) {
|
||||||
case 'publish' :
|
case 'publish' :
|
||||||
|
@ -447,6 +448,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue