Changeset 51322 for trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php
- Timestamp:
- 07/03/2021 09:13:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php
r48102 r51322 13 13 /** 14 14 * Language handling. 15 * 16 * @since Twenty Twenty 1.0 15 17 */ 16 18 class TwentyTwenty_Non_Latin_Languages { … … 21 23 * Return CSS for non-latin language, if available, or null 22 24 * 23 * @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor". 25 * @since Twenty Twenty 1.0 26 * 27 * @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor". 24 28 * @return void 25 29 */ … … 29 33 $locale = get_bloginfo( 'language' ); 30 34 31 // Define fallback fonts for non-latin languages. 35 /** 36 * Filters the fallback fonts for non-latin languages. 37 * 38 * @since Twenty Twenty 1.0 39 * 40 * @param array $font_family An array of locales and font families. 41 */ 32 42 $font_family = apply_filters( 33 43 'twentytwenty_get_localized_font_family_types', … … 99 109 } 100 110 101 // Define elements to apply fallback fonts to. 111 /** 112 * Filters the elements to apply fallback fonts to. 113 * 114 * @since Twenty Twenty 1.0 115 * 116 * @param array $elements An array of elements for "front-end", "block-editor", or "classic-editor". 117 */ 102 118 $elements = apply_filters( 103 119 'twentytwenty_get_localized_font_family_elements',
Note: See TracChangeset
for help on using the changeset viewer.