Make WordPress Core

Changeset 3520


Ignore:
Timestamp:
02/12/2006 08:22:42 AM (19 years ago)
Author:
ryan
Message:

Category count fix from MichaelH. fixes #2212

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r3517 r3520  
    611611            if ($category->category_parent == $parent) {
    612612                $category->cat_name = wp_specialchars($category->cat_name);
    613                 $count = $wpdb->get_var("SELECT COUNT(post_id) FROM $wpdb->post2cat WHERE category_id = $category->cat_ID");
    614613                $pad = str_repeat('— ', $level);
    615614                if ( current_user_can('manage_categories') ) {
     
    628627                echo "<tr id='cat-$category->cat_ID' class='$class'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>
    629628                                <td>$category->category_description</td>
    630                                 <td>$count</td>
     629                                <td>$category->category_count</td>
    631630                                <td>$edit</td>
    632631                                </tr>";
Note: See TracChangeset for help on using the changeset viewer.