Opened 6 years ago
Closed 6 years ago
#4703 closed enhancement (fixed)
Add classes to the Page and Category Walkers
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 2.3 |
| Component: | Optimization | Version: | 2.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Walker_Page needs an ID specific class to allow users to customize the look of links produced by it based on the specific page being linked to. Several users have requested such a thing on the support forums, and the only way to do it is by hacking the core code: http://wordpress.org/support/topic/104396
Similarly, the Walker_Category could use some better classes, such as a general cat_item class as well as a cat_item_ID class.
Patch attched to do both of these.
Attachments (1)
Change History (5)
Use dashes instead of underscores for the new classes and it's fine by me.
Why dashes instead of underscores? Is there a difference other than stylistic?
Dashes are more correct.

Adds classes for page and category items