Skip to content

Commit c6cce34

Browse files
Docs: Add @param and @return description for maybe_hash_hex_color().
Follow-up to [20936], [21354], [37283]. Props rollybueno, SergeyBiryukov. See #63166. git-svn-id: https://develop.svn.wordpress.org/trunk@60709 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 89ae2bd commit c6cce34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/wp-includes/formatting.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6432,8 +6432,9 @@ function sanitize_hex_color_no_hash( $color ) {
64326432
*
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
*/
64386439
function maybe_hash_hex_color( $color ) {
64396440
$unhashed = sanitize_hex_color_no_hash( $color );

0 commit comments

Comments
 (0)