[wp-hackers] Hello, question on $_GET values with plugins

Firas D. fd at firasd.org
Fri Sep 16 00:38:19 GMT 2005

Robert Deaton wrote:

>$_SERVER['PHP_SELF'] . '&edit=1'; should work on plugin admin pages
>also (assuming PHP_SELF is the correct value.)
Indeed, I should have pointed out that the reason one may want to use 
add_query_arg instead of just string concatentation is that if the GET 
var is already in the url it'll be replaced, rather than one ending up 
with &edit=1&edit=1.


More information about the wp-hackers mailing list