Skip to content

Commit 3bce3b1

Browse files
Docs: Add missing DocBlock for the _() function in compat.php.
Follow-up to [3901], [17603], [17620]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60312 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 3410c20 commit 3bce3b1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/wp-includes/compat.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313

1414
// If gettext isn't available.
1515
if ( ! function_exists( '_' ) ) {
16+
/**
17+
* Compat function to mimic _(), an alias of gettext().
18+
*
19+
* @since 0.71
20+
*
21+
* @see https://php.net/manual/en/function.gettext.php
22+
*
23+
* @param string $message The message being translated.
24+
* @return string
25+
*/
1626
function _( $message ) {
1727
return $message;
1828
}

0 commit comments

Comments
 (0)