Make WordPress Core

Changeset 3556


Ignore:
Timestamp:
02/19/2006 11:24:21 AM (18 years ago)
Author:
ryan
Message:

Category count fix from MichaelH. fixes #2212

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/admin-functions.php

    r3554 r3556  
    589589            if ($category->category_parent == $parent) {
    590590                $category->cat_name = wp_specialchars($category->cat_name);
    591                 $count = $wpdb->get_var("SELECT COUNT(post_id) FROM $wpdb->post2cat WHERE category_id = $category->cat_ID");
    592591                $pad = str_repeat('— ', $level);
    593592                if ( current_user_can('manage_categories') ) {
     
    606605                echo "<tr id='cat-$category->cat_ID' class='$class'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>
    607606                                <td>$category->category_description</td>
    608                                 <td>$count</td>
     607                                <td>$category->category_count</td>
    609608                                <td>$edit</td>
    610609                                </tr>";
Note: See TracChangeset for help on using the changeset viewer.