Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#1800 closed enhancement (fixed)

Highlight current category

Reported by: amanzi's profile amanzi Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: General Keywords: highlight current category, bg|has-patch bg|squashed bg|commit
Focuses: Cc:

Description

I raised a suggestion in the wp-testers mailing to change the list_cats function so that if browsing a category page, the current category is highlighted in the list_cats output.

With the help of Ryan Boren and David House we came up with this patch, that changes the list_cats function in the wp-includes/template-functions-category.php file.

Attachments (2)

highlight-current-cat.diff (1.3 KB) - added by amanzi 21 years ago.
1800.patch (1.4 KB) - added by skippy 21 years ago.

Download all attachments as: .zip

Change History (9)

#1 @davidhouse
21 years ago

I've done brief testing on this and it works fine.

#2 @davidhouse
21 years ago

  • Keywords bg|has-patch added

#3 @westi
21 years ago

  • Milestone changed from 1.5.2 to 1.6
  • Version changed from 1.5.2 to 1.6

#4 @ryan
21 years ago

Pages put the class on the li. Should we do that with cats too when outputing a list? I'd like to be consistent.

@skippy
21 years ago

#5 @mikelietz
21 years ago

  • Keywords bg|squashed bg|commit added

Works for me

#6 @ryan
21 years ago

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

(In [3033]) Highlight current class. Props amanzi and skippy. fixes #1800

#7 @(none)
20 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.