Make WordPress Core


Ignore:
Timestamp:
10/20/2020 06:24:33 PM (4 years ago)
Author:
desrosj
Message:

Twenty Twenty: Import the latest changes from GitHub

For a full list of changes since [49216], see https://github.com/WordPress/twentytwentyone/compare/dfe141276ca4b856bbcd748f9da108ddad026c4c...trunk/.

Props poena, melchoyce, luminuu, aristath, jffng, ryelle, kishanjasani, rolfsiebers, sresok, desrosj.
See #51526.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/inc/custom-css.php

    r49216 r49247  
    2424function twenty_twenty_one_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $echo = true ) {
    2525
    26     // Bail early if we have no $selector elements or properties and $value.
     26    // Bail early if there is no $selector elements or properties and $value.
    2727    if ( ! $value || ! $selector ) {
    2828        return '';
     
    3535         * Note to reviewers: $css contains auto-generated CSS.
    3636         * It is included inside <style> tags and can only be interpreted as CSS on the browser.
    37          * Using wp_strip_all_tags() here is sufficient escaping since we just need to avoid
     37         * Using wp_strip_all_tags() here is sufficient escaping to avoid
    3838         * malicious attempts to close </style> and open a <script>.
    3939         */
Note: See TracChangeset for help on using the changeset viewer.