Ticket #1313 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

Wrong looping through terms objects

Reported by: bobrik Owned by:
Priority: normal Milestone: 1.0.3
Component: Back-end Version: 1.1-alpha
Severity: major Keywords: foreach, terms, filters
Cc:

Description

Objects are passed by reference, so we may use foreach to iterate.

If I filter terms and remove first one then no terms will be passes through _bb_make_tag_compat function.

Patch attached

Attachments

bbpress-terms-filter-foreach-fix.diff Download (474 bytes) - added by bobrik 19 months ago.
patch to fix the problem

Change History

patch to fix the problem

  • Status changed from new to closed
  • Resolution set to fixed

(In [2503]) Loop correctly through term objects; pass objects by reference. Fixes #1313. Props to bobrick

Note: See TracTickets for help on using tickets.