From 0d7487bad97e185c246e48be5a24fab5ee7bb985 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 25 Jul 2022 17:26:24 +0000 Subject: [PATCH] Docs: Remove an obsolete function description in `addslashes_gpc()`. - Usage of `get_magic_quotes_gpc()` was removed from `addslashes_gpc()` in [46105] / #47783. - A similar description fragment was removed from `wp_parse_str()` in that changeset, but this one was missed. - The `get_magic_quotes_gpc()` function itself was deprecated in PHP 7.4 and removed in PHP 8.0. Props mitweka, audrasjb, SergeyBiryukov. Fixes #56233. See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@53776 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/formatting.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 097c8a6121..8d41efffdc 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -2785,9 +2785,6 @@ function untrailingslashit( $string ) { /** * Adds slashes to a string or recursively adds slashes to strings within an array. * - * Slashes will first be removed if magic_quotes_gpc is set, see {@link - * https://www.php.net/magic_quotes} for more details. - * * @since 0.71 * * @param string|array $gpc String or array of data to slash.