mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-02 09:07:59 +02:00
Don't use deprecated category API.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a50e0e4c41
commit
5fe0bd0c61
@ -534,7 +534,7 @@ function wp_widget_categories($args) {
|
|||||||
echo $before_widget;
|
echo $before_widget;
|
||||||
echo $before_title . $title . $after_title;
|
echo $before_title . $title . $after_title;
|
||||||
|
|
||||||
$cat_args = "sort_column=name&optioncount={$c}&hierarchical={$h}";
|
$cat_args = "orderby=name&show_count={$c}&hierarchical={$h}";
|
||||||
|
|
||||||
if($d) {
|
if($d) {
|
||||||
wp_dropdown_categories($cat_args);
|
wp_dropdown_categories($cat_args);
|
||||||
@ -552,7 +552,7 @@ function wp_widget_categories($args) {
|
|||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<ul>
|
<ul>
|
||||||
<?php wp_list_cats($cat_args); ?>
|
<?php wp_list_categories($cat_args); ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user