WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/06/2021 12:34:36 PM (5 months ago)
Author:
desrosj
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].

Props SergeyBiryukov.
Merges [51322] to the 5.8 branch.
See #52628, #53461.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-content/themes/twentytwenty/inc/custom-css.php

    r51095 r51338  
    1313     * Generate CSS.
    1414     *
     15     * @since Twenty Twenty 1.0
     16     *
    1517     * @param string $selector The CSS selector.
    16      * @param string $style The CSS style.
    17      * @param string $value The CSS value.
    18      * @param string $prefix The CSS prefix.
    19      * @param string $suffix The CSS suffix.
    20      * @param bool   $echo Echo the styles.
     18     * @param string $style    The CSS style.
     19     * @param string $value    The CSS value.
     20     * @param string $prefix   The CSS prefix.
     21     * @param string $suffix   The CSS suffix.
     22     * @param bool   $echo     Echo the styles.
    2123     */
    2224    function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $echo = true ) {
     
    5153     * Build CSS reflecting colors, fonts and other options set in the Customizer, and return them for output.
    5254     *
    53      * @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor".
     55     * @since Twenty Twenty 1.0
     56     *
     57     * @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor".
    5458     */
    5559    function twentytwenty_get_customizer_css( $type = 'front-end' ) {
     
    7983        ob_start();
    8084
    81         /**
     85        /*
    8286         * Note – Styles are applied in this order:
    8387         * 1. Element specific
     
    8791         * meaning that any color classes applied in the block editor will
    8892         * have a higher priority than the base element styles.
    89         */
     93         */
    9094
    9195        // Front-End Styles.
Note: See TracChangeset for help on using the changeset viewer.