Make WordPress Core


Ignore:
Timestamp:
06/17/2025 04:14:02 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing DocBlock for the _() function in compat.php.

Follow-up to [3901], [17603], [17620].

Props justlevine.
See #63268.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/compat.php

    r59803 r60312  
    1414// If gettext isn't available.
    1515if ( ! 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;
Note: See TracChangeset for help on using the changeset viewer.