Make WordPress Core

Ticket #62112: 62112.patch

File 62112.patch, 2.3 KB (added by viralsampat, 16 months ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

  • src/wp-content/themes/twentynineteen/inc/icon-functions.php

    diff --git src/wp-content/themes/twentynineteen/inc/icon-functions.php src/wp-content/themes/twentynineteen/inc/icon-functions.php
    index 76dba55094..d6f5722181 100644
     
    99
    1010/**
    1111 * Gets the SVG code for a given icon.
     12 *
     13 * @param string $icon The specific icon to retrieve.
     14 * @param int    $size The desired width and height for the SVG icon.
    1215 */
    1316function twentynineteen_get_icon_svg( $icon, $size = 24 ) {
    1417        return TwentyNineteen_SVG_Icons::get_svg( 'ui', $icon, $size );
    function twentynineteen_get_icon_svg( $icon, $size = 24 ) { 
    1619
    1720/**
    1821 * Gets the SVG code for a given social icon.
     22 *
     23 * @param string $icon The specific icon to retrieve.
     24 * @param int    $size The desired width and height for the SVG icon.
    1925 */
    2026function twentynineteen_get_social_icon_svg( $icon, $size = 24 ) {
    2127        return TwentyNineteen_SVG_Icons::get_svg( 'social', $icon, $size );
    function twentynineteen_get_social_icon_svg( $icon, $size = 24 ) { 
    2329
    2430/**
    2531 * Detects the social network from a URL and returns the SVG code for its icon.
     32 *
     33 * @param string $icon The specific icon to retrieve.
     34 * @param int    $size The desired width and height for the SVG icon.
    2635 */
    2736function twentynineteen_get_social_link_svg( $uri, $size = 24 ) {
    2837        return TwentyNineteen_SVG_Icons::get_social_link_svg( $uri, $size );
    function twentynineteen_get_social_link_svg( $uri, $size = 24 ) { 
    3342 *
    3443 * @param string   $item_output The menu item's starting HTML output.
    3544 * @param WP_Post  $item        Menu item data object.
    36  * @param int      $depth       Depth of the menu. Used for padding.
    3745 * @param stdClass $args        An object of wp_nav_menu() arguments.
    3846 * @return string The menu item output with social icon.
    3947 */
    add_filter( 'walker_nav_menu_start_el', 'twentynineteen_nav_menu_social_icons', 
    5664 *
    5765 * @param string   $item_output The menu item's starting HTML output.
    5866 * @param WP_Post  $item        Menu item data object.
    59  * @param int      $depth       Depth of the menu. Used for padding.
    6067 * @param stdClass $args        An object of wp_nav_menu() arguments.
    6168 * @return string Nav menu item start element.
    6269 */