WordPress.org

Make WordPress Core

Changeset 13282


Ignore:
Timestamp:
02/21/10 11:02:14 (5 years ago)
Author:
dd32
Message:

Link to Posts page on Taxonomy Administration page even for Count == 0. Count does not include Drafts/Scheduled posts, only "published" posts. Props miqrogroove. Fixes #11340

File:
1 edited

Legend:

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

    r13256 r13282  
    470470        } 
    471471 
    472         $count = ( $count > 0 ) ? "<a href='edit.php?$tagsel=$tag->slug&amp;post_type=$post_type'>$count</a>" : $count; 
    473  
    474472        $pad = str_repeat( '&#8212; ', max(0, $level) ); 
    475473        $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag ); 
     
    535533                case 'posts': 
    536534                    $attributes = 'class="posts column-posts num"' . $style; 
    537                     $out .= "<td $attributes>$count</td>"; 
     535                    $out .= "<td $attributes><a href='edit.php?$tagsel=$tag->slug&amp;post_type=$post_type'>$count</a></td>"; 
    538536                    break; 
    539537                default: 
Note: See TracChangeset for help on using the changeset viewer.