Make WordPress Core

Changeset 60709

Timestamp:
09/04/2025 08:04:47 PM (6 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Add @param and @return description for maybe_hash_hex_color().

Follow-up to [20936], [21354], [37283].

Props rollybueno, SergeyBiryukov.
See #63166.

File:
1 edited

Legend:

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

    r60702 r60709  
    64336433 * @since 3.4.0
    64346434 *
    6435  * @param string $color
    6436  * @return string
     6435 * @param string $color The color value to add the hash prefix to. Can be with or without a #.
     6436 * @return string The color with the hash prefix if it's a valid hex color,
     6437 *                otherwise the original value.
    64376438 */
    64386439function maybe_hash_hex_color( $color ) {
Note: See TracChangeset for help on using the changeset viewer.