Make WordPress Core

Changeset 10292


Ignore:
Timestamp:
01/04/2009 04:21:35 AM (18 years ago)
Author:
azaozz
Message:

Add hooks for the Users/Categories/Link Categories/Tags table columns, props GM_Alex, fixes #8788

File:
1 edited

Legend:

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

    r10285 r10292  
    182182                                $attributes = 'class="posts column-posts num"' . $style;
    183183                                $output .= "<td $attributes>$posts_count</td>\n";
     184                                break;
     185                        default:
     186                                $output .= "<td $attributes>";
     187                                $output .= apply_filters('manage_categories_custom_column', $column_name, $category->term_id);
     188                                $output .= "</td>";
    184189                }
    185190        }
     
    346351                                $attributes = 'class="links column-links num"' . $style;
    347352                                $output .= "<td $attributes>$count</td>";
     353                                break;
     354                        default:
     355                                $output .= "<td $attributes>";
     356                                $output .= apply_filters('manage_link_categories_custom_column', $column_name, $category->term_id);
     357                                $output .= "</td>";
    348358                }
    349359        }
     
    634644                                        $out .= "<td $attributes>$count</td>";
    635645                                        break;
     646                                default:
     647                                        $out .= "<td $attributes>";
     648                                        $out .= apply_filters("manage_${taxonomy}_custom_column", $column_name, $tag->term_id);
     649                                        $out .= "</td>";
    636650                        }
    637651                }
     
    18801894                                }
    18811895                                $r .= "</td>";
     1896                                break;
     1897                        default:
     1898                                $r .= "<td $attributes>";
     1899                                $r .= apply_filters('manage_users_custom_column', $column_name, $user_object->ID);
     1900                                $r .= "</td>";
    18821901                }
    18831902        }
Note: See TracChangeset for help on using the changeset viewer.