Ticket #2466 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

list_cats filter is not applied to categories on the post screen.

Reported by: majelbstoat Assigned to: majelbstoat
Priority: normal Milestone:
Component: Administration Version: 2.0.3
Severity: normal Keywords: list_cats filter dropdown_categories has-patch commit
Cc:

Description

The list_cats filter is applied to dropdown_cats() and wp_list_cats(), but is not applied to dropdown_categories() which builds the nested list on the post screen. This patch adds that filter there too.

Attachments

apply list_cats filter consistently.diff (0.7 kB) - added by majelbstoat on 02/17/06 00:48:51.
apply list_cats filter consistently part 2.diff (0.8 kB) - added by majelbstoat on 02/17/06 00:58:02.
Does not replace first patch, is in addition to it. Filters single_cat_title().
apply list_cats filter consistently consolidated.diff (2.4 kB) - added by majelbstoat on 02/18/06 13:06:22.
Patch to replace the previous two. In addition, adds filter calls to get_the_category_list
2466 (2.1 trunk).diff (351 bytes) - added by majelbstoat on 07/08/06 09:19:56.
2.1 trunk patch that adds get_category filter.
2466 (2.0.x branch).diff (390 bytes) - added by majelbstoat on 07/08/06 09:20:57.
2.0.4 branch patch that adds get_category filter.

Change History

02/17/06 00:48:51 changed by majelbstoat

  • attachment apply list_cats filter consistently.diff added.

02/17/06 00:57:24 changed by majelbstoat

The category name is also not filtered in single_cat_title(). This second patch (to be used in conjunction with, not instead of the first patch) adds the filter there too.

02/17/06 00:58:02 changed by majelbstoat

  • attachment apply list_cats filter consistently part 2.diff added.

Does not replace first patch, is in addition to it. Filters single_cat_title().

02/18/06 09:23:58 changed by davidhouse

  • keywords changed from list_cats filter dropdown_categories has-patch to list_cats filter dropdown_categories has-patch commit.

Looks good.

02/18/06 12:59:13 changed by majelbstoat

Doh. The change in changeset [3540] which *I myself* recommended shouldn't have been a removal of those lines, it should have been yet another two filter calls. This patch adds the lines back in, filtered as they should be.

This third patch is a consolidated patch that includes the changes in the previous two as well as these new alterations, for a total of four extra calls to the list_cats filter.

02/18/06 13:06:22 changed by majelbstoat

  • attachment apply list_cats filter consistently consolidated.diff added.

Patch to replace the previous two. In addition, adds filter calls to get_the_category_list

07/08/06 09:19:01 changed by majelbstoat

  • version changed from 2.0.1 to 2.0.3.

This still remains an issue on the 2.0.x branch and the trunk. The addition of the get_categories() filter means most of the problem has been fixed. But, there are still instances where get_category() is called, with no possibility to alter the output.

Attached are patches for 2.1 and 2.0.4 that adds the filter get_category() to do the same job as the filter in get_categories(). With this, it should finally be possible for plugins to work with a category's data before it is output, in all cases.

07/08/06 09:19:56 changed by majelbstoat

  • attachment 2466 (2.1 trunk).diff added.

2.1 trunk patch that adds get_category filter.

07/08/06 09:20:57 changed by majelbstoat

  • attachment 2466 (2.0.x branch).diff added.

2.0.4 branch patch that adds get_category filter.

07/08/06 22:17:05 changed by ryan

  • milestone changed from 2.1 to 2.0.4.

07/10/06 16:11:45 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [4007]) get_category filter form majelbstoat. fixes #2466

07/10/06 16:13:05 changed by ryan

(In [4008]) get_category filter form majelbstoat. fixes #2466

11/30/06 19:41:50 changed by

  • milestone deleted.

Milestone 2.0.4 deleted