Make WordPress Core

Ticket #49893: 49893.1.diff

File 49893.1.diff, 5.7 KB (added by audrasjb, 5 years ago)

Bundled Themes: Twenty Twenty: Add TikTok to Social Menu

  • src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php

    diff --git a/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php b/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php
    index 025ad9f844..7e190e12e4 100644
    a b if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { 
    161161                        'pocket'    => array(
    162162                                'getpocket.com',
    163163                        ),
     164                        'tiktok'    => array(
     165                                'tiktok.com',
     166                        ),
    164167                        'twitch'    => array(
    165168                                'twitch.tv',
    166169                        ),
    if ( ! class_exists( 'TwentyTwenty_SVG_Icons' ) ) { 
    238241
    239242                        'tumblr'     => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M16.749,17.396c-0.357,0.17-1.041,0.319-1.551,0.332c-1.539,0.041-1.837-1.081-1.85-1.896V9.847h3.861V6.937h-3.847V2.039 c0,0-2.77,0-2.817,0c-0.046,0-0.127,0.041-0.138,0.144c-0.165,1.499-0.867,4.13-3.783,5.181v2.484h1.945v6.282 c0,2.151,1.587,5.206,5.775,5.135c1.413-0.024,2.982-0.616,3.329-1.126L16.749,17.396z"></path></svg>',
    240243
     244                        'tiktok'     => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M1194.642 23.429c-93.996 102.282-219.786 266.57-324.426 452.286 172.852 40.426 300.852 202.716 300.852 364.858 0 239.002-185.636 349.93-428.998 349.93-125.784 0-226.144-6.356-319.854-6.356-85.504 0-170.934 0-224.146 2.070v-61.93l80.998-14.856c55.712-10.716 87.428-36.148 87.428-168.572v-840.646c0-132.36-31.714-157.93-87.428-168.5l-80.998-15.14v-61.718c57.57 2.070 157.856 6.29 258.216 6.29 96 0 219.786-4.22 273.144-6.29v61.718l-111.002 15.14c-57.564 8.36-87.574 36.14-87.574 168.5v356.286c51.214-4.286 96-4.286 164.432-4.286 130.144-232.5 253.922-407.566 324.214-488.572 64.138-76.924 162.216-125.93 285.996-125.93 36.22 0 74.584 6.364 98.004 17.144v55.362c-76.786 0-153.57 53.424-208.86 113.21zM684.5 548.287c-72.572 0-104.426 1.93-153.644 6.568v535.362c49.218 4.286 115.214 4.286 172.858 4.286 179.354 0 285.93-94.004 285.93-264.572 0-168.572-115.142-281.644-305.144-281.644zM1335.86 1086.859c-2.144 11.212-4.074 24.284-5.786 39.358-1.784 15.214-2.934 33.068-3.642 54.14-0.716 20.926-1.002 46.496-1.002 75.784 0 29.432 0.286 54.646 1.002 75.644 0.71 21.072 1.858 39.146 3.642 54.214 1.712 15.002 3.642 28.146 5.786 39.358 2.070 11.286 4.784 22.002 8.288 32.498 18.352 55.5 48.428 97.214 90.5 125.22 41.998 28 93.498 42.064 154.638 42.064 31.43 0 59.934-3.642 85.218-11.066 25-7.358 47.426-17.504 67.21-30.5 19.5-12.858 36.36-28 50.286-45.144 14.284-17.21 25.782-35.57 34.786-55.288 3.496-6.282 2.502-11.286-3.072-14.782l-77.642-31.926c-6.576-3.504-11.212-1.718-14.862 5.216-17.422 32.286-32.286 53.496-56.708 68.922-24.714 15.36-47.572 22.646-85.218 22.646-40.93 0-59.216-8.14-84.854-26.5-25.432-18-44.076-40.646-55.076-75.14-2.208-6.218-4.214-13.934-6.568-23.004-1.93-9.216-3.504-20.502-4.498-33.712-1.002-13.216-1.93-29.572-2.786-48.86-0.57-19.288-0.856-42.716-0.856-69.858 0-27.282 0.286-50.71 0.856-69.998 0.856-19.214 1.784-35.57 2.786-48.786 0.994-13.356 2.568-24.568 4.498-33.858 2.356-8.93 4.36-16.64 6.568-22.93 11-34.356 26.72-53.138 49.862-68.214 22.858-15.286 49.138-26.288 90.068-26.288 36.36 0 69.646 10.358 91.356 26.148 21.504 15.784 39.358 36.638 47.36 65.142 3.504 12.002 8.002 26.932 11.074 45.216 2.786 18.286 2.786 37.64 2.786 64.352 0 4.22-2.362 6.364-6.29 6.364h-124.358c-7 0-10.43 3.424-10.43 10.422v71.286c0 7.072 3.43 10.504 10.43 10.504h228.214c7.146 0 10.504-3.43 10.504-10.504v-60.928c0-32.286 0-62.216-3.358-89.93-3.218-27.714-7.57-51.712-13.070-69.208-17.43-54.792-45.070-93.792-87.428-122.858-42.504-29.286-97.288-45.070-156.79-45.070-61.14 0-112.64 14.066-154.638 41.998-42.072 28.284-72.148 69.786-90.5 125.286-3.504 10.496-6.218 21.284-8.288 32.57z" /></svg>',
     245
    241246                        'twitch'     => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"></path></svg>',
    242247
    243248                        'twitter'    => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"></path></svg>',
  • src/wp-content/themes/twentytwenty/readme.txt

    diff --git a/src/wp-content/themes/twentytwenty/readme.txt b/src/wp-content/themes/twentytwenty/readme.txt
    index 35acca2382..41437b5d97 100644
    a b License: MIT License, https://opensource.org/licenses/MIT 
    7777Source: https://feathericons.com
    7878Used for post meta icons, and the link icon in the social menu.
    7979
     80Flaticon Icons
     81License: Creative Commons BY 3.0, http://creativecommons.org/licenses/by/3.0/
     82Source: Made by Freepik (https://www.flaticon.com/authors/freepik) for Flaticon (http://www.flaticon.com)
     83Used for Tik Tok social icon.
     84
    8085Social Icons
    8186License: GNU General Public License v2 or later
    8287License URI: http://www.gnu.org/licenses/gpl-2.0.html