Make WordPress Core


Ignore:
Timestamp:
07/03/2021 09:13:48 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty: Add missing documentation for some filters.

Add missing @since tags for some functions.

Correct alignment of some @param tags.

Follow-up to [46271], [46278], [51304].

See #52628, #53461.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php

    r48102 r51322  
    1313    /**
    1414     * Language handling.
     15     *
     16     * @since Twenty Twenty 1.0
    1517     */
    1618    class TwentyTwenty_Non_Latin_Languages {
     
    2123         * Return CSS for non-latin language, if available, or null
    2224         *
    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".
    2428         * @return void
    2529         */
     
    2933            $locale = get_bloginfo( 'language' );
    3034
    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             */
    3242            $font_family = apply_filters(
    3343                'twentytwenty_get_localized_font_family_types',
     
    99109            }
    100110
    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             */
    102118            $elements = apply_filters(
    103119                'twentytwenty_get_localized_font_family_elements',
Note: See TracChangeset for help on using the changeset viewer.