Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#2466 closed defect (bug) (fixed)

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

Reported by: majelbstoat's profile majelbstoat Owned by: majelbstoat's profile majelbstoat
Milestone: Priority: normal
Severity: normal Version: 2.0.3
Component: Administration Keywords: list_cats filter dropdown_categories has-patch commit
Focuses: 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 (5)

apply list_cats filter consistently.diff (717 bytes) - added by majelbstoat 19 years ago.
apply list_cats filter consistently part 2.diff (800 bytes) - added by majelbstoat 19 years ago.
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 19 years ago.
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 19 years ago.
2.1 trunk patch that adds get_category filter.
2466 (2.0.x branch).diff (390 bytes) - added by majelbstoat 19 years ago.
2.0.4 branch patch that adds get_category filter.

Download all attachments as: .zip

Change History (13)

#1 @majelbstoat
19 years ago

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.

@majelbstoat
19 years ago

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

#2 @davidhouse
19 years ago

  • Keywords commit added

Looks good.

#3 @majelbstoat
19 years ago

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.

@majelbstoat
19 years ago

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

#4 @majelbstoat
19 years ago

  • 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.

@majelbstoat
19 years ago

2.1 trunk patch that adds get_category filter.

@majelbstoat
19 years ago

2.0.4 branch patch that adds get_category filter.

#5 @ryan
19 years ago

  • Milestone changed from 2.1 to 2.0.4

#6 @ryan
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

#7 @ryan
19 years ago

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

#8 @(none)
18 years ago

  • Milestone 2.0.4 deleted

Milestone 2.0.4 deleted

Note: See TracTickets for help on using tickets.