PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | lib/block-supports/duotone.php +24 -24 23.9.1 → trunk View file →
@@ -64,11 +64,11 @@
64 64 * @link https://github.com/bgrins/TinyColor
65 65 *
66 66 * @deprecated 6.3.0
67 67 *
68 - * @param mixed $n Number of unknown type.
69 - * @param int $max Upper value of the range to bound to.
70 - * @return float Value in the range [0,1].
68 + * @param mixed $n Number of unknown type.
69 + * @param int $max Upper value of the range to bound to.
70 + * @return float Value in the range [0,1].
71 71 */
72 72 function gutenberg_tinycolor_bound01( $n, $max ) {
73 73 _deprecated_function( __FUNCTION__, '6.3.0' );
74 74
@@ -99,10 +99,10 @@
99 99 * @link https://github.com/bgrins/TinyColor
100 100 *
101 101 * @deprecated 6.3.0
102 102 *
103 - * @param mixed $n Number of unknown type.
104 - * @return float Value in the range [0,1].
103 + * @param mixed $n Number of unknown type.
104 + * @return float Value in the range [0,1].
105 105 */
106 106 function gutenberg_tinycolor_bound_alpha( $n ) {
107 107 _deprecated_function( __FUNCTION__, '6.3.0' );
108 108
@@ -121,10 +121,10 @@
121 121 * @link https://github.com/bgrins/TinyColor
122 122 *
123 123 * @deprecated 6.3.0
124 124 *
125 - * @param array $rgb_color RGB object.
126 - * @return array Rounded and converted RGB object.
125 + * @param array $rgb_color RGB object.
126 + * @return array Rounded and converted RGB object.
127 127 */
128 128 function gutenberg_tinycolor_rgb_to_rgb( $rgb_color ) {
129 129 _deprecated_function( __FUNCTION__, '6.3.0' );
130 130
@@ -141,12 +141,12 @@
141 141 * @link https://github.com/bgrins/TinyColor
142 142 *
143 143 * @deprecated 6.3.0
144 144 *
145 - * @param float $p first component.
146 - * @param float $q second component.
147 - * @param float $t third component.
148 - * @return float R, G, or B component.
145 + * @param float $p first component.
146 + * @param float $q second component.
147 + * @param float $t third component.
148 + * @return float R, G, or B component.
149 149 */
150 150 function gutenberg_tinycolor_hue_to_rgb( $p, $q, $t ) {
151 151 _deprecated_function( __FUNCTION__, '6.3.0' );
152 152
@@ -174,10 +174,10 @@
174 174 * @link https://github.com/bgrins/TinyColor
175 175 *
176 176 * @deprecated 6.3.0
177 177 *
178 - * @param array $hsl_color HSL object.
179 - * @return array Rounded and converted RGB object.
178 + * @param array $hsl_color HSL object.
179 + * @return array Rounded and converted RGB object.
180 180 */
181 181 function gutenberg_tinycolor_hsl_to_rgb( $hsl_color ) {
182 182 _deprecated_function( __FUNCTION__, '6.3.0' );
183 183
@@ -213,10 +213,10 @@
213 213 * @link https://github.com/casesandberg/react-color/
214 214 *
215 215 * @deprecated 6.3.0
216 216 *
217 - * @param string $color_str CSS color string.
218 - * @return array RGB object.
217 + * @param string $color_str CSS color string.
218 + * @return array RGB object.
219 219 */
220 220 function gutenberg_tinycolor_string_to_rgb( $color_str ) {
221 221 _deprecated_function( __FUNCTION__, '6.3.0' );
222 222
@@ -370,10 +370,10 @@
370 370 * Returns the prefixed id for the duotone filter for use as a CSS id.
371 371 *
372 372 * @deprecated 6.3.0
373 373 *
374 - * @param array $preset Duotone preset value as seen in theme.json.
375 - * @return string Duotone filter CSS id.
374 + * @param array $preset Duotone preset value as seen in theme.json.
375 + * @return string Duotone filter CSS id.
376 376 */
377 377 function gutenberg_get_duotone_filter_id( $preset ) {
378 378 _deprecated_function( __FUNCTION__, '6.3.0' );
379 379 return WP_Duotone_Gutenberg::get_filter_id_from_preset( $preset );
@@ -383,10 +383,10 @@
383 383 * Returns the CSS filter property url to reference the rendered SVG.
384 384 *
385 385 * @deprecated 6.3.0
386 386 *
387 - * @param array $preset Duotone preset value as seen in theme.json.
388 - * @return string Duotone CSS filter property url value.
387 + * @param array $preset Duotone preset value as seen in theme.json.
388 + * @return string Duotone CSS filter property url value.
389 389 */
390 390 function gutenberg_get_duotone_filter_property( $preset ) {
391 391 _deprecated_function( __FUNCTION__, '6.3.0' );
392 392 return WP_Duotone_Gutenberg::get_filter_css_property_value_from_preset( $preset );
@@ -396,10 +396,10 @@
396 396 * Returns the duotone filter SVG string for the preset.
397 397 *
398 398 * @deprecated 6.3.0
399 399 *
400 - * @param array $preset Duotone preset value as seen in theme.json.
401 - * @return string Duotone SVG filter.
400 + * @param array $preset Duotone preset value as seen in theme.json.
401 + * @return string Duotone SVG filter.
402 402 */
403 403 function gutenberg_get_duotone_filter_svg( $preset ) {
404 404 _deprecated_function( __FUNCTION__, '6.3.0' );
405 405 return WP_Duotone_Gutenberg::get_filter_svg_from_preset( $preset );
@@ -421,11 +421,11 @@
421 421 * Render out the duotone stylesheet and SVG.
422 422 *
423 423 * @deprecated 6.3.0 Use WP_Duotone_Gutenberg::render_duotone_support() instead.
424 424 *
425 - * @param string $block_content Rendered block content.
426 - * @param array $block Block object.
427 - * @return string Filtered block content.
425 + * @param string $block_content Rendered block content.
426 + * @param array $block Block object.
427 + * @return string Filtered block content.
428 428 */
429 429 function gutenberg_render_duotone_support( $block_content, $block ) {
430 430 _deprecated_function( __FUNCTION__, '6.3.0', 'WP_Duotone_Gutenberg::render_duotone_support' );
431 431 return WP_Duotone_Gutenberg::render_duotone_support( $block_content, $block );