Make WordPress Core


Ignore:
Timestamp:
05/05/2009 04:28:05 AM (16 years ago)
Author:
azaozz
Message:

Banishing ASCII quotes and apostrophes, props demetris, fixes #9655

File:
1 edited

Legend:

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

    r11181 r11190  
    126126    $edit_link = "categories.php?action=edit&cat_ID=$category->term_id";
    127127    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 &#8220;%s&#8221;'), $category->name)) . "'>" . attr( $name ) . '</a><br />';
    129129        $actions = array();
    130130        $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
     
    297297    $edit_link = "link-category.php?action=edit&amp;cat_ID=$category->term_id";
    298298    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 &#8220;%s&#8221;'), $category->name)) . "'>$name</a><br />";
    300300        $actions = array();
    301301        $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
     
    659659                    break;
    660660                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 &#8220;%s&#8221;'), $name)) . '">' . $name . '</a></strong><br />';
    662662                    $actions = array();
    663663                    $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
     
    14371437            $attributes = 'class="post-title column-title"' . $style;
    14381438        ?>
    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 &#8220;%s&#8221;'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states($post); ?></strong>
    14401440        <?php
    14411441            if ( 'excerpt' == $mode )
     
    14501450            if ( in_array($post->post_status, array('pending', 'draft')) ) {
    14511451                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 &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';
    14531453            } 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 &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . __('View') . '</a>';
    14551455            }
    14561456            $actions = apply_filters('post_row_actions', $actions, $post);
     
    16531653        $edit_link = get_edit_post_link( $page->ID );
    16541654        ?>
    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 &#8220;%s&#8221;'), $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>
    16561656        <?php
    16571657        $actions = array();
     
    16631663        if ( in_array($post->post_status, array('pending', 'draft')) ) {
    16641664            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 &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';
    16661666        } 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 &#8220;%s&#8221;'), $title)) . '" rel="permalink">' . __('View') . '</a>';
    16681668        }
    16691669        $actions = apply_filters('page_row_actions', $actions, $page);
     
    35093509    if ( isset($_wp_contextual_help[$screen]) ) {
    35103510        if ( !empty($title) )
    3511             $contextual_help .= '<h5>' . sprintf(__('Get help with "%s"'), $title) . '</h5>';
     3511            $contextual_help .= '<h5>' . sprintf(__('Get help with &#8220;%s&#8221;'), $title) . '</h5>';
    35123512        else
    35133513            $contextual_help .= '<h5>' . __('Get help with this page') . '</h5>';
Note: See TracChangeset for help on using the changeset viewer.