Fix edit link form categories a bit. AJAX add still needs work.

git-svn-id: https://develop.svn.wordpress.org/trunk@6713 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-02 20:31:56 +00:00
parent d04499eccc
commit 090e465ffd
7 changed files with 33 additions and 15 deletions

View File

@@ -187,8 +187,8 @@ function dropdown_categories( $default = 0, $parent = 0 ) {
write_nested_categories( get_nested_categories( $default, $parent ) );
}
function wp_popular_categories_checklist( $default = 0, $number = 10 ) {
$categories = get_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'number' => $number ) );
function wp_popular_terms_checklist( $taxonomy, $default = 0, $number = 10 ) {
$categories = get_terms( $taxonomy, array( 'orderby' => 'count', 'order' => 'DESC', 'number' => $number ) );
foreach ( (array) $categories as $category ) {
$id = "popular-category-$category->term_id";