[wp-trac] [WordPress Trac] #3552: wp_list_cats and list_cats are broken in 2.1
WordPress Trac
noreply at wordpress.org
Mon Feb 12 06:01:39 UTC 2024
#3552: wp_list_cats and list_cats are broken in 2.1
-------------------------------------------------+-------------------------
Reporter: Dickie | Owner: Dickie
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.1
Component: Template | Version: 2.1
Severity: major | Resolution: fixed
Keywords: list_cats wp_list_cats template | Focuses:
has-patch commit |
-------------------------------------------------+-------------------------
Comment (by susmaguoqp7):
It seems that the behavior of the wp_list_cats and list_cats functions in
WordPress 2.1 is not working as expected. The newly deprecated function
list_cats defaults to 'break' behavior instead of 'list,' while
wp_list_cats behaves inconsistently depending on the parameters passed.
This issue has been traced to line 432 of the wp_list_cats function in
deprecated.php. A proposed fix involves modifying the conditional
statement to correctly handle the 'list' parameter. Testing has shown that
the fix resolves the issue in all scenarios. (Patch file attached, rev
4709)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/3552#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list