Bundled Theme: Twenty Nineteen: Improve social media icon dimension attributes.

Set the default width and height attributes of the SVG social icons to match the dimensions used within the CSS. This increases the attributes to 32px x 32 px.

Props crunnells, mukesh27, laurelfulford, tahmidulkarim, jordanpak.
Fixes #45950.



git-svn-id: https://develop.svn.wordpress.org/trunk@56447 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson 2023-08-24 15:32:09 +00:00
parent 2cdaf29678
commit 40df0ec5e2

View File

@ -40,7 +40,7 @@ function twentynineteen_get_social_link_svg( $uri, $size = 24 ) {
function twentynineteen_nav_menu_social_icons( $item_output, $item, $depth, $args ) {
// Change SVG icon inside social links menu if there is supported URL.
if ( 'social' === $args->theme_location ) {
$svg = twentynineteen_get_social_link_svg( $item->url, 26 );
$svg = twentynineteen_get_social_link_svg( $item->url, 32 );
if ( empty( $svg ) ) {
$svg = twentynineteen_get_icon_svg( 'link' );
}