PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
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/class-wp-duotone-gutenberg.php +9 -9 23.6.0 → 24.1.0 View file →
@@ -134,10 +134,10 @@
134 134 *
135 135 * @link https://github.com/omgovich/colord/blob/3f859e03b0ca622eb15480f611371a0f15c9427f/src/helpers.ts#L23
136 136 *
137 137 * @param float $number The number to clamp.
138 - * @param float $min The minimum value.
139 - * @param float $max The maximum value.
138 + * @param float $min The minimum value.
139 + * @param float $max The maximum value.
140 140 * @return float The clamped value.
141 141 */
142 142 private static function colord_clamp( $number, $min = 0, $max = 1 ) {
143 143 return $number > $max ? $max : ( $number > $min ? $number : $min );
@@ -877,11 +877,11 @@
877 877 * Render out the duotone CSS styles and SVG.
878 878 *
879 879 * @since 6.3.0
880 880 *
881 - * @param string $block_content Rendered block content.
882 - * @param array $block Block object.
883 - * @param WP_Block $wp_block The block instance.
881 + * @param string $block_content Rendered block content.
882 + * @param array $block Block object.
883 + * @param WP_Block $wp_block The block instance.
884 884 * @return string Filtered block content.
885 885 */
886 886 public static function render_duotone_support( $block_content, $block, $wp_block ) {
887 887 if ( ! $block['blockName'] ) {
@@ -966,10 +966,10 @@
966 966 * in classic themes due to gutenberg_restore_image_outer_container from layout block supports.
967 967 *
968 968 * @since 6.5.0
969 969 *
970 - * @param string $block_content Rendered block content.
971 - * @return string Filtered block content.
970 + * @param string $block_content Rendered block content.
971 + * @return string Filtered block content.
972 972 */
973 973 public static function restore_image_outer_container( $block_content ) {
974 974 if ( wp_theme_has_theme_json() ) {
975 975 return $block_content;
@@ -1118,10 +1118,10 @@
1118 1118 *
1119 1119 * @since 6.3.0
1120 1120 * @deprecated 6.3.0
1121 1121 *
1122 - * @param array $preset Duotone preset value as seen in theme.json.
1123 - * @return string Duotone filter CSS id.
1122 + * @param array $preset Duotone preset value as seen in theme.json.
1123 + * @return string Duotone filter CSS id.
1124 1124 */
1125 1125 public static function get_filter_id_from_preset( $preset ) {
1126 1126 _deprecated_function( __FUNCTION__, '6.3.0' );
1127 1127