mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Don't use deprecated category API.
git-svn-id: https://develop.svn.wordpress.org/trunk@5349 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fdc3ca298c
commit
77fb496bc6
@ -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…
x
Reference in New Issue
Block a user