[wp-trac] [WordPress Trac] #40666: allow arbitrary HTML attributes on <a> produced by Walker_Category

WordPress Trac noreply at wordpress.org
Thu May 4 14:54:11 UTC 2017


#40666: allow arbitrary HTML attributes on <a> produced by Walker_Category
------------------------------------+------------------------------
 Reporter:  pbiron                  |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Taxonomy                |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+------------------------------
Changes (by pbiron):

 * keywords:   => dev-feedback has-patch


Comment:

 To the best of my knowledge,  in core `Walker_Category` is only used by
 `wp_list_categories()` and `wp_list_categories()` is only used by
 `WP_Widget_Categories'.

 As a result, I'm not sure that the name of new filter introduced in my
 patch (`category_menu_link_attributes`) is appropriate.  I named it that
 to mirror the new filter introduced in #40359...which was named after the
 existing filter in `Walker_Nav_Menu`.

 I'd like some feedback on the naming (and inline docs) for this new
 filter.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40666#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list