Make WordPress Core


Ignore:
Timestamp:
10/08/2019 07:05:53 PM (5 years ago)
Author:
desrosj
Message:

Bundled Themes: Update Twenty Twenty.

This brings trunk's version of Twenty Twenty in-sync with GitHub.

For a complete list of changes since [46357], see https://github.com/WordPress/twentytwenty/compare/7157870...7246fd6.

Props anlino, ianbelanger, poena, williampatton, nielslange, acosmin, netweb, joyusly, luminuu, itowhid06, cbravobernal, intimez, glauberglauber, ocean90, amolv, briceduclos, aristath, mukesh27, garrett-eclipse, audrasjb, afercia, dianeco, utsav72640, mahesh901122, tobifjellner.
See #48110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/inc/svg-icons.php

    r46271 r46445  
    1414     *
    1515     * @param string $svg_name The name of the icon.
     16     * @param string $group The group the icon belongs to.
    1617     * @param string $color Color code.
    1718     */
    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();.
    2021    }
    2122}
     
    2728     *
    2829     * @param string $svg_name The name of the icon.
     30     * @param string $group The group the icon belongs to.
    2931     * @param string $color Color code.
    3032     */
    31     function twentytwenty_get_theme_svg( $svg_name, $color = '' ) {
     33    function twentytwenty_get_theme_svg( $svg_name, $group = 'ui', $color = '' ) {
    3234
    3335        // Make sure that only our allowed tags and attributes are included.
    3436        $svg = wp_kses(
    35             TwentyTwenty_SVG_Icons::get_svg( $svg_name, $color ),
     37            TwentyTwenty_SVG_Icons::get_svg( $svg_name, $group, $color ),
    3638            array(
    3739                'svg'     => array(
Note: See TracChangeset for help on using the changeset viewer.