Skip to content

Commit 5510378

Browse files
author
Xavier Lozano Carreras
committed
Address PR feedback
1 parent 3084d19 commit 5510378

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/class-wp-duotone-gutenberg.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ private static function colord_parse( $input ) {
448448
* var:preset|duotone|blue-orange
449449
* var(--wp--preset--duotone--blue-orange)
450450
*
451-
* @param string $duotone_attr The duotone attribute from a block.
452-
* @return string The slug of the duotone preset or an empty string if no slug is found.
451+
* @param string|string[] $duotone_attr The duotone attribute from a block.
452+
* @return string The slug of the duotone preset or an empty string if no slug is found (including when an array was passed).
453453
*/
454454
private static function get_slug_from_attribute( $duotone_attr ) {
455455
if ( ! is_string( $duotone_attr ) ) {
@@ -465,7 +465,7 @@ private static function get_slug_from_attribute( $duotone_attr ) {
465465
/**
466466
* Check if we have a valid duotone preset.
467467
*
468-
* @param string $duotone_attr The duotone attribute from a block.
468+
* @param string|string[] $duotone_attr The duotone attribute from a block.
469469
* @return bool True if the duotone preset present and valid.
470470
*/
471471
private static function is_preset( $duotone_attr ) {

0 commit comments

Comments
 (0)