Ticket #4703 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

Add classes to the Page and Category Walkers

Reported by: Otto42 Assigned to: anonymous
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

walker-classes.diff (1.4 kB) - added by Otto42 on 08/06/07 16:09:13.
Adds classes for page and category items

Change History

08/06/07 16:09:13 changed by Otto42

  • attachment walker-classes.diff added.

Adds classes for page and category items

08/14/07 02:27:49 changed by ryan

Use dashes instead of underscores for the new classes and it's fine by me.

08/14/07 13:27:36 changed by Otto42

Why dashes instead of underscores? Is there a difference other than stylistic?

08/16/07 18:38:23 changed by ryan

08/22/07 22:59:46 changed by ryan

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

(In [5920]) Add cat-item-id and page-item-id classes. Props Otto42. fixes #4703