Show category ID.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
08c6accba1
commit
1b44e09005
|
@ -81,7 +81,7 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) {
|
||||||
$pad = str_repeat('— ', $level);
|
$pad = str_repeat('— ', $level);
|
||||||
|
|
||||||
$bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
|
$bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
|
||||||
echo "<tr style='background-color: $bgcolor'><td>$pad $category->cat_name</td>
|
echo "<tr style='background-color: $bgcolor'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>
|
||||||
<td>$category->category_description</td>
|
<td>$category->category_description</td>
|
||||||
<td>$count</td>
|
<td>$count</td>
|
||||||
<td><a href='categories.php?action=edit&cat_ID=$category->cat_ID' class='edit'>" . __('Edit') . "</a></td><td><a href='categories.php?action=Delete&cat_ID=$category->cat_ID' onclick=\"return confirm('". sprintf(__("You are about to delete the category \'%s\'. All of its posts will go to the default category.\\n \'OK\' to delete, \'Cancel\' to stop."), addslashes($category->cat_name)) . "')\" class='delete'>" . __('Delete') . "</a></td>
|
<td><a href='categories.php?action=edit&cat_ID=$category->cat_ID' class='edit'>" . __('Edit') . "</a></td><td><a href='categories.php?action=Delete&cat_ID=$category->cat_ID' onclick=\"return confirm('". sprintf(__("You are about to delete the category \'%s\'. All of its posts will go to the default category.\\n \'OK\' to delete, \'Cancel\' to stop."), addslashes($category->cat_name)) . "')\" class='delete'>" . __('Delete') . "</a></td>
|
||||||
|
|
|
@ -146,6 +146,7 @@ default:
|
||||||
<h2><?php printf(__('Current Categories (<a href="%s">add new</a>)'), '#addcat') ?> </h2>
|
<h2><?php printf(__('Current Categories (<a href="%s">add new</a>)'), '#addcat') ?> </h2>
|
||||||
<table width="100%" cellpadding="3" cellspacing="3">
|
<table width="100%" cellpadding="3" cellspacing="3">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th scope="col"><?php _e('ID') ?></th>
|
||||||
<th scope="col"><?php _e('Name') ?></th>
|
<th scope="col"><?php _e('Name') ?></th>
|
||||||
<th scope="col"><?php _e('Description') ?></th>
|
<th scope="col"><?php _e('Description') ?></th>
|
||||||
<th scope="col"><?php _e('# Posts') ?></th>
|
<th scope="col"><?php _e('# Posts') ?></th>
|
||||||
|
|
|
@ -185,7 +185,7 @@ textarea, input, select {
|
||||||
.wrap {
|
.wrap {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
margin: 15px 5%;
|
margin: 15px 5%;
|
||||||
padding: 0 1em;
|
padding: .5em 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap h2 {
|
.wrap h2 {
|
||||||
|
@ -341,8 +341,7 @@ textarea, input, select {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#postcustom td,th {
|
#postcustom td, #postcustom th {
|
||||||
background-color: #fff;
|
|
||||||
color: #000;
|
color: #000;
|
||||||
margin: 1px;
|
margin: 1px;
|
||||||
padding: 0.2em;
|
padding: 0.2em;
|
||||||
|
|
Loading…
Reference in New Issue