Make WordPress Core

Ticket #38949: 38949.diff

File 38949.diff, 735 bytes (added by celloexpressions, 8 years ago)

Add filter to twentyseventeen_custom_colors_css().

  • src/wp-content/themes/twentyseventeen/inc/color-patterns.php

     
    557557        }
    558558}';
    559559
    560         return $css;
     560
     561        /**
     562         * Filter Twenty Seventeen custom colors CSS.
     563         *
     564         * @since Twenty Seventeen 1.0
     565         *
     566         * @param $css        String  Base theme colors CSS.
     567         * @param $hue        integer The user's selected color hue.
     568         * @param $saturation String  Filtered theme color saturation level.
     569         */
     570        return apply_filters( 'twentyseventeen_custom_colors_css', $css, $hue, $saturation );
    561571}