[wp-trac] [WordPress Trac] #16437: wp_category_checklist should have name parameter

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 1 19:48:31 UTC 2011


#16437: wp_category_checklist should have name parameter
-------------------------+-------------------------------------------------
 Reporter:  takien       |      Owner:
     Type:  feature      |     Status:  new
  request                |  Milestone:  Awaiting Review
 Priority:  normal       |    Version:  3.0.4
Component:  General      |   Keywords:  wp_category_checklist, category,
 Severity:  normal       |  walker
-------------------------+-------------------------------------------------
 I found [http://core.trac.wordpress.org/browser/trunk/wp-
 admin/includes/template.php#L64 wp_category_checklist] is useful for
 creating my plugin/theme settings options. Unfortunately, it's currently
 don't have name parameter, the name is statically defined as
 '''post_category''' in the ''Walker_Category_Checklist'' default walker.

 [[BR]]
 ''wp_category_checklist( $post_id = 0, $descendants_and_self = 0,
 $selected_cats = false, $popular_cats = false, $walker = null,
 $checked_ontop = true )''

 [[BR]]
 where it should be something like[[BR]]

 ''wp_category_checklist( $post_id = 0, $descendants_and_self = 0,
 $selected_cats = false, $popular_cats = false, $walker = null,
 $checked_ontop = true, $name='post_category' )''

 So we don't need to create a new walker just to change the name.
 Thank you.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16437>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list