Skip to content

Commit

Permalink
Removed superfluous slashes (#1754)
Browse files Browse the repository at this point in the history
Since the $fonts_url already contains a trailing slash, I have removed the slashes from the @font-face declarations for the WooCommerce and Star fonts.
  • Loading branch information
vanderwijk authored Aug 9, 2021
1 parent df38941 commit c012bb5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions inc/woocommerce/class-storefront-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,23 @@ public function add_core_fonts() {
'storefront-woocommerce-style',
'@font-face {
font-family: star;
src: url(' . $fonts_url . '/star.eot);
src: url(' . $fonts_url . 'star.eot);
src:
url(' . $fonts_url . '/star.eot?#iefix) format("embedded-opentype"),
url(' . $fonts_url . '/star.woff) format("woff"),
url(' . $fonts_url . '/star.ttf) format("truetype"),
url(' . $fonts_url . '/star.svg#star) format("svg");
url(' . $fonts_url . 'star.eot?#iefix) format("embedded-opentype"),
url(' . $fonts_url . 'star.woff) format("woff"),
url(' . $fonts_url . 'star.ttf) format("truetype"),
url(' . $fonts_url . 'star.svg#star) format("svg");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: WooCommerce;
src: url(' . $fonts_url . '/WooCommerce.eot);
src: url(' . $fonts_url . 'WooCommerce.eot);
src:
url(' . $fonts_url . '/WooCommerce.eot?#iefix) format("embedded-opentype"),
url(' . $fonts_url . '/WooCommerce.woff) format("woff"),
url(' . $fonts_url . '/WooCommerce.ttf) format("truetype"),
url(' . $fonts_url . '/WooCommerce.svg#WooCommerce) format("svg");
url(' . $fonts_url . 'WooCommerce.eot?#iefix) format("embedded-opentype"),
url(' . $fonts_url . 'WooCommerce.woff) format("woff"),
url(' . $fonts_url . 'WooCommerce.ttf) format("truetype"),
url(' . $fonts_url . 'WooCommerce.svg#WooCommerce) format("svg");
font-weight: 400;
font-style: normal;
}'
Expand Down

0 comments on commit c012bb5

Please sign in to comment.