Docs: Add security warning in `remove_query_arg()` docblock to make it consistent with `add_query_arg()`.

Props roytanck.
Fixes #57885.
See #56792.

Built from https://develop.svn.wordpress.org/trunk@55492


git-svn-id: http://core.svn.wordpress.org/trunk@55025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-03-08 22:19:23 +00:00
parent 2f20a88190
commit abac5af424
2 changed files with 5 additions and 1 deletions

View File

@ -1196,6 +1196,10 @@ function add_query_arg( ...$args ) {
/**
* Removes an item or items from a query string.
*
* Important: The return value of remove_query_arg() is not escaped by default. Output should be
* late-escaped with esc_url() or similar to help prevent vulnerability to cross-site scripting
* (XSS) attacks.
*
* @since 1.5.0
*
* @param string|string[] $key Query key or keys to remove.

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.2-beta5-55491';
$wp_version = '6.2-beta5-55492';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.