WordPress.org

Make WordPress Core

Ticket #39488: 39488.5.patch

File 39488.5.patch, 1.7 KB (added by BharatKambariya, 3 years ago)

Added twentyseventeen_content_width, twentyseventeen_custom_colors_saturation and twentyseventeen_social_links_icons

  • src/wp-content/themes/twentyseventeen/functions.php

     
    249249         *
    250250         * @since Twenty Seventeen 1.0
    251251         *
    252          * @param $content_width integer
     252         * @param int $content_width integer value for the width.
    253253         */
    254254        $GLOBALS['content_width'] = apply_filters( 'twentyseventeen_content_width', $content_width );
    255255}
  • src/wp-content/themes/twentyseventeen/inc/color-patterns.php

     
    1818         *
    1919         * @since Twenty Seventeen 1.0
    2020         *
    21          * @param $saturation integer
     21         * @param int $saturation integer value for how many colors saturation you need
    2222         */
    2323        $saturation = absint( apply_filters( 'twentyseventeen_custom_colors_saturation', 50 ) );
    2424        $reduced_saturation = ( .8 * $saturation ) . '%';
  • src/wp-content/themes/twentyseventeen/inc/icon-functions.php

     
    212212         *
    213213         * @since Twenty Seventeen 1.0
    214214         *
    215          * @param array $social_links_icons
     215         * @param array $social_links_icons include icon elements to pass into the array.
    216216         */
    217217        return apply_filters( 'twentyseventeen_social_links_icons', $social_links_icons );
    218218}