- Timestamp:
- 04/20/2022 02:22:21 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/custom-css.php
r51322 r53236 20 20 * @param string $prefix The CSS prefix. 21 21 * @param string $suffix The CSS suffix. 22 * @param bool $ echo Echothe styles.22 * @param bool $display Output the styles. 23 23 */ 24 function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $ echo= true ) {24 function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $display = true ) { 25 25 26 26 $return = ''; … … 36 36 $return = sprintf( '%s { %s: %s; }', $selector, $style, $prefix . $value . $suffix ); 37 37 38 if ( $ echo) {38 if ( $display ) { 39 39 40 40 echo $return; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;)
Note: See TracChangeset
for help on using the changeset viewer.