Make WordPress Core

Changeset 62971


Ignore:
Timestamp:
08/03/2026 11:35:52 AM (3 weeks ago)
Author:
wildworks
Message:

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: https://github.com/WordPress/wordpress-develop/pull/12791

Follow-up to [61603].

Props bejignesh, mukesh27, wildworks.
See #64896.

File:
1 edited

Legend:

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

    r62627 r62971  
    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 ) {
Note: See TracChangeset for help on using the changeset viewer.