Skip to content

Commit dc1c000

Browse files
Add missing @return tags to CSS generation functions for Twenty Twenty and Twenty Twenty-One
1 parent b697495 commit dc1c000

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* @param string $prefix The CSS prefix.
2121
* @param string $suffix The CSS suffix.
2222
* @param bool $display Print the styles.
23+
* @return string Generated CSS.
2324
*/
2425
function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $display = true ) {
2526

@@ -54,6 +55,7 @@ function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $su
5455
* @since Twenty Twenty 1.0
5556
*
5657
* @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor".
58+
* @return string CSS styles built from Customizer options.
5759
*/
5860
function twentytwenty_get_customizer_css( $type = 'front-end' ) {
5961

src/wp-content/themes/twentytwentyone/inc/custom-css.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @param string $prefix The CSS prefix.
1919
* @param string $suffix The CSS suffix.
2020
* @param bool $display Print the styles.
21-
* @return string
21+
* @return string Generated CSS.
2222
*/
2323
function twenty_twenty_one_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $display = true ) {
2424

0 commit comments

Comments
 (0)