Opened 17 months ago

Last modified 17 months ago

#19556 new enhancement

Make wp_term_checklist() available as a template tag

Reported by: scribu Owned by:
Priority: normal Milestone: Awaiting Review
Component: Template Version:
Severity: normal Keywords:
Cc:

Description

Currently, wp_term_checklist() is defined in wp-admin/includes/template.php, which means it's not available as a template tag for themes.

Note that wp_dropdown_categories() is defined in wp-includes/category-template.php. We should move wp_term_checklist() there too.

Change History (2)

  • Walker_Category_Checklist also needs to be moved.
  • The current_user_can() check should be extracted out of there.

Not sure what to do with the 'popular_cats' arg.

Related: #16437

Note: See TracTickets for help on using tickets.