add_query_arg() does not return Strict XHTML links.
|Reported by:||majelbstoat||Owned by:||markjaquith|
|Severity:||normal||Keywords:||add_query_arg ampersand xhtml strict bg|has-patch|
add_query_arg() is a useful general purpose function that can be employed to extend a query string if it already exists. However, the appending of new variables is done with '&' rather than '&', which means that links returned are not XHTML Strict 1.0 or XHTML 1.1 compliant. This is not important for wp-admin pages, but causes problems on site pages. Parsing errors in Firefox and possible more browsers cause the site not to be visible, returning only an XML error. The following patch alters add_query_arg() to append using the correct '&' connector, which would greatly enhance its usability for plugins that wish to work with links.
Change History (11)
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned