Docs: Align spelling with American English.

This changeset replaces "behaviour" with "behavior" in various docblocks.

Props kebbet, jrf.
See #56811, #56792.


git-svn-id: https://develop.svn.wordpress.org/trunk@54663 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2022-10-21 21:10:29 +00:00
parent b2a5db3938
commit 3adb24ff8c
16 changed files with 24 additions and 24 deletions

View File

@@ -247,7 +247,7 @@ class WP_Http {
* - A WP_Error instance
* - boolean false to avoid short-circuiting the response
*
* Returning any other value may result in unexpected behaviour.
* Returning any other value may result in unexpected behavior.
*
* @since 2.9.0
*
@@ -325,7 +325,7 @@ class WP_Http {
'hooks' => new WP_HTTP_Requests_Hooks( $url, $parsed_args ),
);
// Ensure redirects follow browser behaviour.
// Ensure redirects follow browser behavior.
$options['hooks']->register( 'requests.before_redirect', array( get_class(), 'browser_redirect_compatibility' ) );
// Validate redirected URLs.
@@ -476,7 +476,7 @@ class WP_Http {
}
/**
* Match redirect behaviour to browser handling.
* Match redirect behavior to browser handling.
*
* Changes 302 redirects from POST to GET to match browser handling. Per
* RFC 7231, user agents can deviate from the strict reading of the