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:
parent
aa86283408
commit
5a286f7a1b
@ -478,6 +478,15 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
|
|||||||
// Hex encoded octets are case-insensitive.
|
// Hex encoded octets are case-insensitive.
|
||||||
if ( false !== strpos($requested_url, '%') ) {
|
if ( false !== strpos($requested_url, '%') ) {
|
||||||
if ( !function_exists('lowercase_octets') ) {
|
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) {
|
function lowercase_octets($matches) {
|
||||||
return strtolower( $matches[0] );
|
return strtolower( $matches[0] );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user