Commit ac4a198f58 for wordpress.org

commit ac4a198f5844b8e7182c64122bef2ba5fac6123a
Author: wildworks <wildworks@git.wordpress.org>
Date:   Wed Dec 2 07:54:01 2026 +0000

    Docs: Place `@link` after `@since` and `@deprecated` tags.

    Reorders the docblocks of the typography preset helper, the deprecated TinyColor helpers, and the colord helpers ported into the duotone class so that `@link` follows `@since` and `@deprecated`, as the PHP inline documentation standards require.

    Developed in: https://github.com/WordPress/wordpress-develop/pull/16326

    Props mukesh27, shailu25, wildworks.
    Fixes #66869.
    Built from https://develop.svn.wordpress.org/trunk@65859


    git-svn-id: http://core.svn.wordpress.org/trunk@64888 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/block-supports/typography.php b/wp-includes/block-supports/typography.php
index 6204ed02b6..92e6298313 100644
--- a/wp-includes/block-supports/typography.php
+++ b/wp-includes/block-supports/typography.php
@@ -282,10 +282,11 @@ function wp_apply_typography_support( $block_type, $block_attributes ) {
  * * It is necessary to parse older blocks whose typography styles contain presets.
  * * It mostly replaces the deprecated `wp_typography_get_css_variable_inline_style()`,
  *   but skips compiling a CSS declaration as the style engine takes over this role.
- * @link https://github.com/wordpress/gutenberg/pull/27555
  *
  * @since 6.1.0
  *
+ * @link https://github.com/wordpress/gutenberg/pull/27555
+ *
  * @param string $style_value  A raw style value for a single typography feature from a block's style attribute.
  * @param string $css_property Slug for the CSS property the inline style sets.
  * @return string A CSS inline style value.
diff --git a/wp-includes/class-wp-duotone.php b/wp-includes/class-wp-duotone.php
index 49cf221c11..5ec6901fa7 100644
--- a/wp-includes/class-wp-duotone.php
+++ b/wp-includes/class-wp-duotone.php
@@ -153,12 +153,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's clamp function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L23 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L23 Sourced from colord.
+	 *
 	 * @param float $number The number to clamp.
 	 * @param float $min    The minimum value.
 	 * @param float $max    The maximum value.
@@ -173,12 +173,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's clampHue function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L32 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L32 Sourced from colord.
+	 *
 	 * @param float $degrees The hue to clamp.
 	 * @return float The clamped hue.
 	 */
@@ -192,12 +192,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's parseHue function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L40 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L40 Sourced from colord.
+	 *
 	 * @param float  $value The hue value to parse.
 	 * @param string $unit  The unit of the hue value.
 	 * @return float The parsed hue value.
@@ -219,12 +219,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's parseHex function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hex.ts#L8 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hex.ts#L8 Sourced from colord.
+	 *
 	 * @param string $hex The hex string to parse.
 	 * @return array|null An array of RGBA values or null if the hex string is invalid.
 	 */
@@ -267,12 +267,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's clampRgba function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/rgb.ts#L5 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/rgb.ts#L5 Sourced from colord.
+	 *
 	 * @param array $rgba The RGBA array to clamp.
 	 * @return array The clamped RGBA array.
 	 */
@@ -290,12 +290,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's parseRgbaString function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/rgbString.ts#L18 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/rgbString.ts#L18 Sourced from colord.
+	 *
 	 * @param string $input The RGBA string to parse.
 	 * @return array|null An array of RGBA values or null if the RGB string is invalid.
 	 */
@@ -347,12 +347,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's clampHsla function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L6 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L6 Sourced from colord.
+	 *
 	 * @param array $hsla The HSLA array to clamp.
 	 * @return array The clamped HSLA array.
 	 */
@@ -370,12 +370,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's hsvaToRgba function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsv.ts#L52 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsv.ts#L52 Sourced from colord.
+	 *
 	 * @param array $hsva The HSVA array to convert.
 	 * @return array The RGBA array.
 	 */
@@ -404,12 +404,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's hslaToHsva function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L33 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L33 Sourced from colord.
+	 *
 	 * @param array $hsla The HSLA array to convert.
 	 * @return array The HSVA array.
 	 */
@@ -434,12 +434,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's hslaToRgba function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L55 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hsl.ts#L55 Sourced from colord.
+	 *
 	 * @param array $hsla The HSLA array to convert.
 	 * @return array The RGBA array.
 	 */
@@ -452,12 +452,12 @@ class WP_Duotone {
 	 *
 	 * Direct port of colord's parseHslaString function.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hslString.ts#L17 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/colorModels/hslString.ts#L17 Sourced from colord.
+	 *
 	 * @param string $input The HSLA string to parse.
 	 * @return array|null An array of RGBA values or null if the RGB string is invalid.
 	 */
@@ -508,12 +508,12 @@ class WP_Duotone {
 	 * Direct port of colord's parse function simplified for our use case. This
 	 * version only supports string parsing and only returns RGBA values.
 	 *
-	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/parse.ts#L37 Sourced from colord.
-	 *
 	 * @internal
 	 *
 	 * @since 6.3.0
 	 *
+	 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/parse.ts#L37 Sourced from colord.
+	 *
 	 * @param string $input The string to parse.
 	 * @return array|null An array of RGBA values or null if the string is invalid.
 	 */
diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php
index 1eac319870..969798c845 100644
--- a/wp-includes/deprecated.php
+++ b/wp-includes/deprecated.php
@@ -4864,13 +4864,13 @@ function wp_img_tag_add_loading_attr( $image, $context ) {
  * Direct port of TinyColor's function, lightly simplified to maintain
  * consistency with TinyColor.
  *
- * @link https://github.com/bgrins/TinyColor
- *
  * @since 5.8.0
  * @deprecated 6.3.0
  *
  * @access private
  *
+ * @link https://github.com/bgrins/TinyColor
+ *
  * @param mixed $n   Number of unknown type.
  * @param int   $max Upper value of the range to bound to.
  * @return float Value in the range [0, 1].
@@ -4901,13 +4901,13 @@ function wp_tinycolor_bound01( $n, $max ) {
  * Direct port of tinycolor's boundAlpha function to maintain consistency with
  * how tinycolor works.
  *
- * @link https://github.com/bgrins/TinyColor
- *
  * @since 5.9.0
  * @deprecated 6.3.0
  *
  * @access private
  *
+ * @link https://github.com/bgrins/TinyColor
+ *
  * @param mixed $n Number of unknown type.
  * @return float Value in the range [0,1].
  */
@@ -4929,13 +4929,13 @@ function _wp_tinycolor_bound_alpha( $n ) {
  * Direct port of TinyColor's function, lightly simplified to maintain
  * consistency with TinyColor.
  *
- * @link https://github.com/bgrins/TinyColor
- *
  * @since 5.8.0
  * @deprecated 6.3.0
  *
  * @access private
  *
+ * @link https://github.com/bgrins/TinyColor
+ *
  * @param array $rgb_color RGB object.
  * @return array Rounded and converted RGB object.
  */
@@ -4955,13 +4955,13 @@ function wp_tinycolor_rgb_to_rgb( $rgb_color ) {
  * Direct port of TinyColor's function, lightly simplified to maintain
  * consistency with TinyColor.
  *
- * @link https://github.com/bgrins/TinyColor
- *
  * @since 5.8.0
  * @deprecated 6.3.0
  *
  * @access private
  *
+ * @link https://github.com/bgrins/TinyColor
+ *
  * @param float $p first component.
  * @param float $q second component.
  * @param float $t third component.
@@ -4994,13 +4994,13 @@ function wp_tinycolor_hue_to_rgb( $p, $q, $t ) {
  * Direct port of TinyColor's function, lightly simplified to maintain
  * consistency with TinyColor.
  *
- * @link https://github.com/bgrins/TinyColor
- *
  * @since 5.8.0
  * @deprecated 6.3.0
  *
  * @access private
  *
+ * @link https://github.com/bgrins/TinyColor
+ *
  * @param array $hsl_color HSL object.
  * @return array Rounded and converted RGB object.
  */
@@ -5038,15 +5038,15 @@ function wp_tinycolor_hsl_to_rgb( $hsl_color ) {
  * Direct port of TinyColor's function, lightly simplified to maintain
  * consistency with TinyColor.
  *
- * @link https://github.com/bgrins/TinyColor
- * @link https://github.com/casesandberg/react-color/
- *
  * @since 5.8.0
  * @since 5.9.0 Added alpha processing.
  * @deprecated 6.3.0
  *
  * @access private
  *
+ * @link https://github.com/bgrins/TinyColor
+ * @link https://github.com/casesandberg/react-color/
+ *
  * @param string $color_str CSS color string.
  * @return array RGB object.
  */
diff --git a/wp-includes/version.php b/wp-includes/version.php
index bc85b07808..ea42c70988 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.3-alpha-65858';
+$wp_version = '7.3-alpha-65859';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.