Changeset 11190 for trunk/wp-admin/includes/template.php
- Timestamp:
- 05/05/2009 04:28:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r11181 r11190 126 126 $edit_link = "categories.php?action=edit&cat_ID=$category->term_id"; 127 127 if ( current_user_can( 'manage_categories' ) ) { 128 $edit = "<a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit "%s"'), $category->name)) . "'>" . attr( $name ) . '</a><br />';128 $edit = "<a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit “%s”'), $category->name)) . "'>" . attr( $name ) . '</a><br />'; 129 129 $actions = array(); 130 130 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; … … 297 297 $edit_link = "link-category.php?action=edit&cat_ID=$category->term_id"; 298 298 if ( current_user_can( 'manage_categories' ) ) { 299 $edit = "<a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit "%s"'), $category->name)) . "'>$name</a><br />";299 $edit = "<a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit “%s”'), $category->name)) . "'>$name</a><br />"; 300 300 $actions = array(); 301 301 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; … … 659 659 break; 660 660 case 'name': 661 $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . attr(sprintf(__('Edit "%s"'), $name)) . '">' . $name . '</a></strong><br />';661 $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . attr(sprintf(__('Edit “%s”'), $name)) . '">' . $name . '</a></strong><br />'; 662 662 $actions = array(); 663 663 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; … … 1437 1437 $attributes = 'class="post-title column-title"' . $style; 1438 1438 ?> 1439 <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attr(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states($post); ?></strong>1439 <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states($post); ?></strong> 1440 1440 <?php 1441 1441 if ( 'excerpt' == $mode ) … … 1450 1450 if ( in_array($post->post_status, array('pending', 'draft')) ) { 1451 1451 if ( current_user_can('edit_post', $post->ID) ) 1452 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('Preview "%s"'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';1452 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; 1453 1453 } else { 1454 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';1454 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 1455 1455 } 1456 1456 $actions = apply_filters('post_row_actions', $actions, $post); … … 1653 1653 $edit_link = get_edit_post_link( $page->ID ); 1654 1654 ?> 1655 <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $page->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attr(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . __('Parent Page: ') . wp_specialchars($parent_name) : ''; ?></strong>1655 <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $page->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $title)); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . __('Parent Page: ') . wp_specialchars($parent_name) : ''; ?></strong> 1656 1656 <?php 1657 1657 $actions = array(); … … 1663 1663 if ( in_array($post->post_status, array('pending', 'draft')) ) { 1664 1664 if ( current_user_can('edit_page', $page->ID) ) 1665 $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attr(sprintf(__('Preview "%s"'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';1665 $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; 1666 1666 } else { 1667 $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attr(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';1667 $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 1668 1668 } 1669 1669 $actions = apply_filters('page_row_actions', $actions, $page); … … 3509 3509 if ( isset($_wp_contextual_help[$screen]) ) { 3510 3510 if ( !empty($title) ) 3511 $contextual_help .= '<h5>' . sprintf(__('Get help with "%s"'), $title) . '</h5>';3511 $contextual_help .= '<h5>' . sprintf(__('Get help with “%s”'), $title) . '</h5>'; 3512 3512 else 3513 3513 $contextual_help .= '<h5>' . __('Get help with this page') . '</h5>';
Note: See TracChangeset
for help on using the changeset viewer.