Docs: Add a missing DocBlock for the lowercase_octets() function, which is nested within redirect_canonical().

Will be skipped from parsing.

See #32246. See #meta942.


git-svn-id: https://develop.svn.wordpress.org/trunk@38106 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2016-07-19 19:31:31 +00:00
parent aa86283408
commit 5a286f7a1b

View File

@ -478,6 +478,15 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
// Hex encoded octets are case-insensitive.
if ( false !== strpos($requested_url, '%') ) {
if ( !function_exists('lowercase_octets') ) {
/**
* Converts the first hex-encoded octet match to lowercase.
*
* @since 3.1
* @ignore
*
* @param array $matches Hex-encoded octet matches for the requested URL.
* @return string Lowercased version of the first match.
*/
function lowercase_octets($matches) {
return strtolower( $matches[0] );
}