Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33720 closed enhancement (fixed)

Adding echo argument to wp_terms_checklist() to allow return of generated markup

Reported by: kevinlangleyjr Owned by: boonebgorges
Priority: normal Milestone: 4.4
Component: Taxonomy Version: 4.4
Severity: normal Keywords: has-patch
Cc: Focuses: template

Description

Currently, wp_terms_checklist() echos the output with no way to just return the generated markup without opening an output buffer and capturing the output. In this patch, I've added an extra argument to wp_terms_checklist() to allow the return of the markup.

Attachments (1)

33720_add_ech_arg_wp_terms_checklist.diff (3.4 KB ) - added by kevinlangleyjr 11 years ago.
Adding echo arg to wp_terms_checklist() function to allow returning of the generated markup or echo by default

Download all attachments as: .zip

Change History (4)

@kevinlangleyjr
11 years ago

Adding echo arg to wp_terms_checklist() function to allow returning of the generated markup or echo by default

#1 @kevinlangleyjr
11 years ago

  • Keywords has-patch added

#2 @boonebgorges
11 years ago

  • Component GeneralTaxonomy
  • Focuses template added; administration removed
  • Milestone Awaiting Review4.4
  • Owner set to boonebgorges
  • Status newreviewing

Bonus: this will make it easier to write unit tests.

#3 @boonebgorges
11 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 33904:

Allow wp_terms_checklist() to return markup rather than echoing it.

Props kevinlangleyjr.
Fixes #33720.

Note: See TracTickets for help on using tickets.