From 5a286f7a1be8a9911bb50f3899133542441dfd47 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 19 Jul 2016 19:31:31 +0000 Subject: [PATCH] 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 --- src/wp-includes/canonical.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/wp-includes/canonical.php b/src/wp-includes/canonical.php index a8f35c4b41..264a277886 100644 --- a/src/wp-includes/canonical.php +++ b/src/wp-includes/canonical.php @@ -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] ); }