Twenty Twelve: Bundle Google Fonts locally.

This changeset bundles the Google Fonts used by Twenty Twelve locally in the theme folder, instead of loading them from Google servers. Existing font stylesheet handles are maintained for backward compatibilily.

Props garrett-eclipse, kjellr, ocean90, SergeyBiryukov, westonruter, luminuu, audrasjb, jhoffmann, jffng, paapst, cbirdsong, webcommsat, kau-boy, MatthiasReinholz, sabernhardt, hellofromTonya, JeffPaul, davidbaumwald, desrosj, bedas, poena, costdev, mukesh27, azaozz, aristath.
See #55985.

Built from https://develop.svn.wordpress.org/trunk@55277


git-svn-id: http://core.svn.wordpress.org/trunk@54810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-02-07 17:14:20 +00:00
parent 9c5d4ca8d1
commit 7f49ed6ddf
41 changed files with 516 additions and 44 deletions

View File

@ -0,0 +1,389 @@
/*
Open Sans
Copyright 2020 The Open Sans Project Authors (https://github.com/googlefonts/opensans)
SIL Open Font License, Version 1.1 (https://opensource.org/licenses/OFL-1.1)
*/
/* open-sans-cyrillic-ext-400-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-cyrillic-ext-400-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-italic.woff?ver=34') format('woff');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* open-sans-cyrillic-400-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-cyrillic-400-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-italic.woff?ver=34') format('woff');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* open-sans-greek-ext-400-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-greek-ext-400-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-italic.woff?ver=34') format('woff');
unicode-range: U+1F00-1FFF;
}
/* open-sans-greek-400-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-greek-400-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-italic.woff?ver=34') format('woff');
unicode-range: U+0370-03FF;
}
/* open-sans-hebrew-400-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-hebrew-400-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-italic.woff?ver=34') format('woff');
unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* open-sans-vietnamese-400-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-vietnamese-400-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-italic.woff?ver=34') format('woff');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* open-sans-latin-ext-400-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-latin-ext-400-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-italic.woff?ver=34') format('woff');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* open-sans-latin-400-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-latin-400-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-italic.woff?ver=34') format('woff');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* open-sans-cyrillic-ext-400-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-cyrillic-ext-400-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-normal.woff?ver=34') format('woff');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* open-sans-cyrillic-400-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-cyrillic-400-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-normal.woff?ver=34') format('woff');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* open-sans-greek-ext-400-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-greek-ext-400-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-normal.woff?ver=34') format('woff');
unicode-range: U+1F00-1FFF;
}
/* open-sans-greek-400-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-greek-400-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-normal.woff?ver=34') format('woff');
unicode-range: U+0370-03FF;
}
/* open-sans-hebrew-400-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-hebrew-400-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-normal.woff?ver=34') format('woff');
unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* open-sans-vietnamese-400-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-vietnamese-400-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-normal.woff?ver=34') format('woff');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* open-sans-latin-ext-400-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-latin-ext-400-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-normal.woff?ver=34') format('woff');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* open-sans-latin-400-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 400;
src:
url('./open-sans/open-sans-latin-400-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-400-normal.woff?ver=34') format('woff');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* open-sans-cyrillic-ext-700-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-cyrillic-ext-700-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-italic.woff?ver=34') format('woff');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* open-sans-cyrillic-700-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-cyrillic-700-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-italic.woff?ver=34') format('woff');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* open-sans-greek-ext-700-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-greek-ext-700-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-italic.woff?ver=34') format('woff');
unicode-range: U+1F00-1FFF;
}
/* open-sans-greek-700-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-greek-700-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-italic.woff?ver=34') format('woff');
unicode-range: U+0370-03FF;
}
/* open-sans-hebrew-700-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-hebrew-700-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-italic.woff?ver=34') format('woff');
unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* open-sans-vietnamese-700-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-vietnamese-700-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-italic.woff?ver=34') format('woff');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* open-sans-latin-ext-700-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-latin-ext-700-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-italic.woff?ver=34') format('woff');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* open-sans-latin-700-italic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-latin-700-italic.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-italic.woff?ver=34') format('woff');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* open-sans-cyrillic-ext-700-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-cyrillic-ext-700-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-normal.woff?ver=34') format('woff');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* open-sans-cyrillic-700-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-cyrillic-700-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-normal.woff?ver=34') format('woff');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* open-sans-greek-ext-700-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-greek-ext-700-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-normal.woff?ver=34') format('woff');
unicode-range: U+1F00-1FFF;
}
/* open-sans-greek-700-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-greek-700-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-normal.woff?ver=34') format('woff');
unicode-range: U+0370-03FF;
}
/* open-sans-hebrew-700-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-hebrew-700-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-normal.woff?ver=34') format('woff');
unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* open-sans-vietnamese-700-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-vietnamese-700-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-normal.woff?ver=34') format('woff');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}
/* open-sans-latin-ext-700-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-latin-ext-700-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-normal.woff?ver=34') format('woff');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* open-sans-latin-700-normal */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-display: fallback;
font-weight: 700;
src:
url('./open-sans/open-sans-latin-700-normal.woff2?ver=34') format('woff2'),
url('./open-sans/open-sans-all-700-normal.woff?ver=34') format('woff');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

View File

@ -0,0 +1,93 @@
Copyright 2020 The Open Sans Project Authors (https://github.com/googlefonts/opensans)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@ -137,50 +137,32 @@ require get_template_directory() . '/inc/custom-header.php';
*/
require get_template_directory() . '/inc/block-patterns.php';
/**
* Return the Google font stylesheet URL if available.
*
* The use of Open Sans by default is localized. For languages that use
* characters not supported by the font, the font can be disabled.
*
* @since Twenty Twelve 1.2
*
* @return string Font stylesheet or empty string if disabled.
*/
function twentytwelve_get_font_url() {
$font_url = '';
/*
* translators: If there are characters in your language that are not supported
* by Open Sans, translate this to 'off'. Do not translate into your own language.
if ( ! function_exists( 'twentytwelve_get_font_url' ) ) :
/**
* Return the font stylesheet URL if available.
*
* The use of Open Sans by default is localized. For languages that use
* characters not supported by the font, the font can be disabled.
*
* @since Twenty Twelve 1.2
* @since Twenty Twelve 3.9 Replaced Google URL with self-hosted font.
*
* @return string Font stylesheet or empty string if disabled.
*/
if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
$subsets = 'latin,latin-ext';
function twentytwelve_get_font_url() {
$font_url = '';
/*
* translators: To add an additional Open Sans character subset specific to your language,
* translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
*/
$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
if ( 'cyrillic' === $subset ) {
$subsets .= ',cyrillic,cyrillic-ext';
} elseif ( 'greek' === $subset ) {
$subsets .= ',greek,greek-ext';
} elseif ( 'vietnamese' === $subset ) {
$subsets .= ',vietnamese';
* translators: If there are characters in your language that are not supported
* by Open Sans, translate this to 'off'. Do not translate into your own language.
*/
if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
$font_url = get_template_directory_uri() . '/fonts/font-open-sans.css';
}
$query_args = array(
'family' => urlencode( 'Open Sans:400italic,700italic,400,700' ),
'subset' => urlencode( $subsets ),
'display' => urlencode( 'fallback' ),
);
$font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
return $font_url;
}
return $font_url;
}
endif;
/**
* Enqueue scripts and styles for front end.
@ -203,7 +185,8 @@ function twentytwelve_scripts_styles() {
$font_url = twentytwelve_get_font_url();
if ( ! empty( $font_url ) ) {
wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null );
$font_version = ( 0 === strpos( (string) twentytwelve_get_font_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null;
wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), $font_version );
}
// Loads our main stylesheet.
@ -227,7 +210,8 @@ function twentytwelve_block_editor_styles() {
// Block styles.
wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20200713' );
// Add custom fonts.
wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null );
$font_version = ( 0 === strpos( (string) twentytwelve_get_font_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null;
wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), $font_version );
}
add_action( 'enqueue_block_editor_assets', 'twentytwelve_block_editor_styles' );
@ -235,6 +219,7 @@ add_action( 'enqueue_block_editor_assets', 'twentytwelve_block_editor_styles' );
* Add preconnect for Google Fonts.
*
* @since Twenty Twelve 2.2
* @deprecated Twenty Twelve 3.9 Disabled filter because, by default, fonts are self-hosted.
*
* @param array $urls URLs to print for resource hints.
* @param string $relation_type The relation type the URLs are printed.
@ -254,14 +239,14 @@ function twentytwelve_resource_hints( $urls, $relation_type ) {
return $urls;
}
add_filter( 'wp_resource_hints', 'twentytwelve_resource_hints', 10, 2 );
// add_filter( 'wp_resource_hints', 'twentytwelve_resource_hints', 10, 2 );
/**
* Filter TinyMCE CSS path to include Google Fonts.
* Filter TinyMCE CSS path to include hosted fonts.
*
* Adds additional stylesheets to the TinyMCE editor if needed.
*
* @uses twentytwelve_get_font_url() To get the Google Font stylesheet URL.
* @uses twentytwelve_get_font_url() To get the font stylesheet URL.
*
* @since Twenty Twelve 1.2
*

View File

@ -40,6 +40,11 @@ HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas
Licenses: MIT/GPL2
Source: https://github.com/aFarkas/html5shiv
Open Sans Font
Copyright 2020 The Open Sans Project Authors (https://github.com/googlefonts/opensans)
License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1
Source: https://fontsource.org/fonts/open-sans
"Fall Leaf Photo" by Tim Sullivan. CC0. https://stocksnap.io/photo/fall-leaf-ZBK0NLVP2B
"Fall Leaf Photo" by Tim Sullivan. CC0. https://stocksnap.io/photo/fall-leaf-EEGO4GCPQD
"Autumn City Photo" by Oleg Prokopenko. CC0. https://stocksnap.io/photo/autumn-city-PZP8EWR5MR

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.2-alpha-55276';
$wp_version = '6.2-alpha-55277';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.