From 4c29c4eb1162f8b4b9109d23f0c0ec1088d707c7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 26 Jun 2020 14:49:29 +0000 Subject: [PATCH] Twenty Twenty: Correct parameter types and `@since` version for `twentytwenty_svg_icon_color` filter. Follow-up to [48180]. See #48713. git-svn-id: https://develop.svn.wordpress.org/trunk@48181 602fd350-edb4-49c9-b593-d223f7449a82 --- .../classes/class-twentytwenty-svg-icons.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php index 21a8aee89e..52648b40f6 100644 --- a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php +++ b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php @@ -17,7 +17,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { * GET SVG CODE * Get the SVG code for the specified icon * - * @param string $icon Icon name. + * @param string $icon Icon name. * @param string $group Icon group. * @param string $color Color. */ @@ -36,7 +36,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { * The dynamic portion of the hook name, `$group`, refers to * the name of the group of icons, either "ui" or "social". * - * @since 1.5.0 + * @since Twenty Twenty 1.5 * * @param array $arr Array of icons. */ @@ -45,11 +45,11 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { /** * Filters an SVG icon's color. * - * @since 1.5.0 + * @since Twenty Twenty 1.5 * - * @param array $color The icon color. - * @param array $icon The icon name. - * @param array $group The icon group. + * @param string $color The icon color. + * @param string $icon The icon name. + * @param string $group The icon group. */ $color = apply_filters( 'twentytwenty_svg_icon_color', $color, $icon, $group ); @@ -82,7 +82,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { * By default, each Icon ID is matched against a .com TLD. To override this behavior, * specify all the domains it covers (including the .com TLD too, if applicable). * - * @since 1.5.0 + * @since Twenty Twenty 1.5 * * @param array $social_icons_map Array of default social icons. */ @@ -91,7 +91,7 @@ if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { /** * Filters Twenty Twenty's array of social icons. * - * @since 1.5.0 + * @since Twenty Twenty 1.5 * * @param array $social_icons Array of default social icons. */