Does add_query_arg() have a failure mode?
-
Just checking before posting a bug report, but if you call:
add_query_arg( ”, “http://www.test.com”);
I’d expect to get back:
http://www.test.com
instead I seem to be getting back the address of the current page.
NOTE: Easily guarded against but not obvious behaviour – should certainly be in the documentation if not seen by people as a bug.NOTE: I am posting a form from a WordPress shortcode on a page to an external PHP file which includes the wp core, like this:
require_once($_SERVER[‘DOCUMENT_ROOT’].’/wp-load.php’);
I am accessing add_query_arg() in this ‘external’ fileSo maybe that is a factor? Anybody else seen this issue?
The topic ‘Does add_query_arg() have a failure mode?’ is closed to new replies.