Ticket #7552: tag-cat-slug-columns.diff
File tag-cat-slug-columns.diff, 1.8 KB (added by , 16 years ago) |
---|
-
wp-admin/includes/template.php
82 82 $name = ( $name_override ? $name_override : $pad . ' ' . $category->name ); 83 83 $edit_link = "categories.php?action=edit&cat_ID=$category->term_id"; 84 84 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 />'; 86 86 $actions = array(); 87 87 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; 88 88 if ( $default_cat_id != $category->term_id ) … … 131 131 case 'description': 132 132 $output .= "<td $attributes>$category->description</td>"; 133 133 break; 134 case 'slug': 135 $output .= "<td $attributes>$category->slug</td>"; 136 break; 134 137 case 'posts': 135 138 $attributes = 'class="posts column-posts num"' . $style; 136 139 $output .= "<td $attributes>$posts_count</td>\n"; … … 401 404 } 402 405 $out .= '</td>'; 403 406 break; 407 case 'slug': 408 $out .= "<td $attributes>$tag->slug</td>"; 409 break; 404 410 case 'posts': 405 411 $attributes = 'class="posts column-posts num"' . $style; 406 412 $out .= "<td $attributes>$count</td>"; … … 544 550 'cb' => '<input type="checkbox" />', 545 551 'name' => __('Name'), 546 552 'description' => __('Description'), 553 'slug' => __('Slug'), 547 554 'posts' => __('Posts') 548 555 ); 549 556 … … 561 568 $columns = array( 562 569 'cb' => '<input type="checkbox" />', 563 570 'name' => __('Name'), 571 'slug' => __('Slug'), 564 572 'posts' => __('Posts') 565 573 ); 566 574