WordPress.org

Make WordPress Core

Changeset 9045


Ignore:
Timestamp:
09/30/2008 11:40:44 PM (10 years ago)
Author:
ryan
Message:

Add slug columns. Props Viper007Bond. see #7552

File:
1 edited

Legend:

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

    r9041 r9045  
    8383    $edit_link = "categories.php?action=edit&cat_ID=$category->term_id";
    8484    if ( current_user_can( 'manage_categories' ) ) {
    85         $edit = "<a class='row-title' href='$edit_link' title='" . attribute_escape(sprintf(__('Edit "%s"'), $category->name)) . "'>$name</a><br />";
     85        $edit = "<a class='row-title' href='$edit_link' title='" . attribute_escape(sprintf(__('Edit "%s"'), $category->name)) . "'>" . attribute_escape( $name ) . '</a><br />';
    8686        $actions = array();
    8787        $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
     
    131131            case 'description':
    132132                $output .= "<td $attributes>$category->description</td>";
     133                break;
     134            case 'slug':
     135                $output .= "<td $attributes>$category->slug</td>";
    133136                break;
    134137            case 'posts':
     
    402405                    $out .= '</td>';
    403406                    break;
     407                case 'slug':
     408                    $out .= "<td $attributes>$tag->slug</td>";
     409                    break;
    404410                case 'posts':
    405411                    $attributes = 'class="posts column-posts num"' . $style;
     
    545551                'name' => __('Name'),
    546552                'description' => __('Description'),
     553                'slug' => __('Slug'),
    547554                'posts' => __('Posts')
    548555            );
     
    562569                'cb' => '<input type="checkbox" />',
    563570                'name' => __('Name'),
     571                'slug' => __('Slug'),
    564572                'posts' => __('Posts')
    565573            );
Note: See TracChangeset for help on using the changeset viewer.