[wp-hackers] The menu-system in wp 1.3
Ryan Boren
ryan at boren.nu
Wed Oct 20 21:30:21 UTC 2004
>> It would be nice if we had an add_arg function for URIs that would
>> handle query strings elegantly.
>>
>
> Maybe:
>
> add_arg: Returns a modified querystring by adding
> a single key & value or an associative array.
> Setting a key value to emptystring removes the key.
> Omitting oldquery_or_uri uses the $_SERVER value.
>
> Parameters:
> add_arg(newkey, newvalue, oldquery_or_uri) or
> add_arg(associative_array, oldquery_or_uri)
I added this as add_query_arg() and also added a remove_query_arg() wrapper.
Ryan
More information about the hackers
mailing list