- Timestamp:
- 10/08/2019 07:05:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/svg-icons.php
r46271 r46445 14 14 * 15 15 * @param string $svg_name The name of the icon. 16 * @param string $group The group the icon belongs to. 16 17 * @param string $color Color code. 17 18 */ 18 function twentytwenty_the_theme_svg( $svg_name, $ color = '' ) {19 echo twentytwenty_get_theme_svg( $svg_name, $ color ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_theme_svg();.19 function twentytwenty_the_theme_svg( $svg_name, $group = 'ui', $color = '' ) { 20 echo twentytwenty_get_theme_svg( $svg_name, $group, $color ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_theme_svg();. 20 21 } 21 22 } … … 27 28 * 28 29 * @param string $svg_name The name of the icon. 30 * @param string $group The group the icon belongs to. 29 31 * @param string $color Color code. 30 32 */ 31 function twentytwenty_get_theme_svg( $svg_name, $ color = '' ) {33 function twentytwenty_get_theme_svg( $svg_name, $group = 'ui', $color = '' ) { 32 34 33 35 // Make sure that only our allowed tags and attributes are included. 34 36 $svg = wp_kses( 35 TwentyTwenty_SVG_Icons::get_svg( $svg_name, $ color ),37 TwentyTwenty_SVG_Icons::get_svg( $svg_name, $group, $color ), 36 38 array( 37 39 'svg' => array(
Note: See TracChangeset
for help on using the changeset viewer.