[wp-hackers] Everybody Stop
Stephen Minutillo
steveminutillo at gmail.com
Tue Jul 27 19:17:37 UTC 2004
On Tue, 27 Jul 2004 12:52:45 -0500, Matt Mullenweg <m at mullenweg.com> wrote:
> When proposing changes to existing functions, please keep in mind
> backwards compatibility.
It is possible to change from 'urlencoded' to 'associative array'
style and maintain backwards compatibility. In fact both styles can
be supported simultaneously:
function my_function($array_or_url)
{
if(is_array($array_or_url)) { $array = $array_or_url; }
else { parse_str($array_or_url, $array); }
// rest of function uses arguments in $array
}
> When proposing awkward syntaxes, please keep in mind users. WordPress
> templates are already too complicated.
My point was that (I find that) the associative array style is less
akward and less complicated! But I understand that you disagree.
Steve Minutillo
More information about the hackers
mailing list