Make WordPress Core

Changeset 60714

Timestamp:
09/06/2025 09:56:18 PM (5 weeks ago)
Author:
SergeyBiryukov
Message:

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

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

Props rollybueno, SergeyBiryukov.
See #63166.

File:
1 edited

Legend:

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

    r60709 r60714  
    64126412 * @since 3.4.0
    64136413 *
    6414  * @param string $color
    6415  * @return string|null
     6414 * @param string $color The color value to sanitize. Can be with or without a #.
     6415 * @return string|null The sanitized hex color without the hash prefix,
     6416 *                     empty string if input is empty, or null if invalid.
    64166417 */
    64176418function sanitize_hex_color_no_hash( $color ) {
Note: See TracChangeset for help on using the changeset viewer.