mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user