Open GoogleCodeExporter opened 8 years ago
Original comment by r.wetzlmayr
on 22 May 2012 at 11:56
I checked all the function calls do_list() - 53 matches
and have not seen a single case where a need is not a unique array.
Therefore, I think a logical change do_list() to return an array of unique
values.
Original comment by zasl...@gmail.com
on 24 May 2012 at 6:48
Attachments:
Strictly changing core function behavior that would break all backwards
compatibility. Textpattern's core isn't the only one using the function. There
are other including our rah projects from which number use do_list() and none
expect only unique values. We merely use the function because it allows use of
callback pseudo-type and trims whitespace from values.
Original comment by jukka.svahn@rahinaa.biz
on 25 May 2012 at 12:37
Why did I say "allows use of callback pseudo-type". But anyways, merely
changing the behavior isn't an option in my opinion. It just would break other
potential uses without a good reason. The unique filter is better served as a
separate new function or as a third argument.
Original comment by jukka.svahn@rahinaa.biz
on 25 May 2012 at 12:42
Make it a unique list is a good idea! Set it as a third argument with preset
value! So it won't be break anything.
Original comment by chasoft
on 10 Jun 2012 at 12:37
Original comment by r.wetzlmayr
on 9 Jul 2012 at 4:24
Original comment by r.wetzlmayr
on 25 Dec 2013 at 9:50
Original issue reported on code.google.com by
zasl...@gmail.com
on 22 May 2012 at 10:11