Skip to content

Commit 3d9a592

Browse files
committed
Docs: Restore the @return tag for WP_Duotone::is_preset().
Removes a duplicate `@param` tag carrying an outdated type and restores the description of the returned value. Developed in: WordPress#12791 Follow-up to [61603]. Props bejignesh, mukesh27, wildworks. See #64896. git-svn-id: https://develop.svn.wordpress.org/trunk@62971 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 07220f2 commit 3d9a592

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/wp-includes/class-wp-duotone.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ private static function get_slug_from_attribute( $duotone_attr ) {
569569
*
570570
* @since 6.3.0
571571
*
572-
* @param string $duotone_attr The duotone attribute from a block.
573572
* @param string|string[] $duotone_attr The duotone attribute from a block.
573+
* @return bool True if the duotone preset present and valid.
574574
*/
575575
private static function is_preset( $duotone_attr ) {
576576
if ( ! is_string( $duotone_attr ) ) {

0 commit comments

Comments
 (0)