Commit 90427965c4 for wordpress.org
commit 90427965c4ae403fa212be3e2aff7a14a03c99ec
Author: desrosj <desrosj@git.wordpress.org>
Date: Tue Nov 10 15:26:00 2026 +0000
External Libraries: Include new file added in Requests 2.0.21.
This adds the new `src/wp-includes/Requests/src/Utility/Trim.php` file that was missed in r65383.
Follow up to r65383.
Unprops desrosj.
Built from https://develop.svn.wordpress.org/trunk@65386
git-svn-id: http://core.svn.wordpress.org/trunk@64525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/Requests/src/Utility/Trim.php b/wp-includes/Requests/src/Utility/Trim.php
new file mode 100644
index 0000000000..862cb1ac98
--- /dev/null
+++ b/wp-includes/Requests/src/Utility/Trim.php
@@ -0,0 +1,51 @@
+<?php
+/**
+ * Requests for PHP, an HTTP library.
+ *
+ * @copyright 2012-2023 Requests Contributors
+ * @license https://github.com/WordPress/Requests/blob/stable/LICENSE ISC
+ * @link https://github.com/WordPress/Requests
+ */
+
+namespace WpOrg\Requests\Utility;
+
+/**
+ * Poor person's (backed) enum with the PHP native trim `$characters` defaults to choose from.
+ *
+ * In PHP 8.6, the default value for the `$characters` parameter of the `[rl]trim()` function
+ * changed to include the form feed character.
+ *
+ * This "enum" allows calls to `[rl]trim()` throughout the code to document and make it explicit
+ * which characters should be trimmed from the text string in question.
+ *
+ * @link https://wiki.php.net/rfc/trim_form_feed
+ *
+ * ---------------------------------------------------------------------------------------------
+ * This class is only intended for internal use by Requests and is not part of the public API.
+ * This also means that it has no promise of backward compatibility. Use at your own risk.
+ * ---------------------------------------------------------------------------------------------
+ *
+ * @internal
+ * @package Requests\Utilities
+ * @since 2.1.0
+ */
+final class Trim {
+
+ /**
+ * The ASCII whitespace characters and the NUL byte, excluding the form feed character.
+ *
+ * This is the PHP native default in PHP < 8.6.
+ *
+ * @var string
+ */
+ const WHITESPACE_CHARS_NO_FF = " \n\r\t\v\x00";
+
+ /**
+ * The ASCII whitespace characters, including the form feed character, and the NUL byte.
+ *
+ * This is the PHP native default in PHP >= 8.6.
+ *
+ * @var string
+ */
+ const WHITESPACE_CHARS = " \f\n\r\t\v\x00";
+}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 0e6651d151..db415a049c 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-beta4-65385';
+$wp_version = '7.2-beta4-65386';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.