summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-includes/compat.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/wp-includes/compat.php')
-rw-r--r--src/wp-includes/compat.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wp-includes/compat.php b/src/wp-includes/compat.php
index fc6db436fe..f0bdf07974 100644
--- a/src/wp-includes/compat.php
+++ b/src/wp-includes/compat.php
@@ -13,6 +13,16 @@
// If gettext isn't available.
if ( ! function_exists( '_' ) ) {
+ /**
+ * Compat function to mimic _(), an alias of gettext().
+ *
+ * @since 0.71
+ *
+ * @see https://php.net/manual/en/function.gettext.php
+ *
+ * @param string $message The message being translated.
+ * @return string
+ */
function _( $message ) {
return $message;
}