Skip to content

Commit b697495

Browse files
Apply suggestions from code review
Co-authored-by: Weston Ruter <[email protected]>
1 parent 5b1a821 commit b697495

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/wp-content/themes/twentyfourteen/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ function twentyfourteen_register_block_patterns() {
756756
*
757757
* @global WP_Customize_Manager $wp_customize Customizer object.
758758
*
759-
* @return bool True if the site is being previewed in the Customizer, false otherwise.
759+
* @return bool Whether the site is being previewed in the Customizer.
760760
*/
761761
if ( ! function_exists( 'is_customize_preview' ) ) :
762762
function is_customize_preview() {

src/wp-content/themes/twentynineteen/inc/template-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Adds custom classes to the array of body classes.
1212
*
1313
* @param array $classes Classes for the body element.
14-
* @return array The filtered body class list.
14+
* @return string[] The filtered body class list.
1515
*/
1616
function twentynineteen_body_classes( $classes ) {
1717

src/wp-content/themes/twentyseventeen/inc/template-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Adds custom classes to the array of body classes.
1212
*
1313
* @param array $classes Classes for the body element.
14-
* @return array Filtered body classes with theme-specific additions.
14+
* @return string[] Filtered body classes with theme-specific additions.
1515
*/
1616
function twentyseventeen_body_classes( $classes ) {
1717
// Add class of group-blog to blogs with more than 1 published author.

src/wp-content/themes/twentyseventeen/inc/template-tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function twentyseventeen_front_page_section( $partial = null, $id = 0 ) {
184184
/**
185185
* Returns true if a blog has more than 1 category.
186186
*
187-
* @return bool True if the blog has more than 1 category, false otherwise.
187+
* @return bool Whether the blog has more than 1 category.
188188
*/
189189
function twentyseventeen_categorized_blog() {
190190
$category_count = get_transient( 'twentyseventeen_categories' );

src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ public static function sanitize_select( $input, $setting ) {
459459
* @since Twenty Twenty 1.0
460460
*
461461
* @param bool $checked Whether or not a box is checked.
462-
* @return bool True if the checkbox is checked, false otherwise.
462+
* @return bool Whether the checkbox is checked.
463463
*/
464464
public static function sanitize_checkbox( $checked ) {
465465
return ( ( isset( $checked ) && true === $checked ) ? true : false );

src/wp-content/themes/twentytwenty/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function twentytwenty_menus() {
304304
* @since Twenty Twenty 1.0
305305
*
306306
* @param string $html The HTML output from get_custom_logo() (core function).
307-
* @return string Custom logo HTML with retina support.
307+
* @return string|false Custom logo HTML or false if not available.
308308
*/
309309
function twentytwenty_get_custom_logo( $html ) {
310310

@@ -635,7 +635,7 @@ function twentytwenty_block_editor_settings() {
635635
* Overwrite default more tag with styling and screen reader markup.
636636
*
637637
* @param string $html The default output HTML for the more tag.
638-
* @return string The filtered HTML of the more tag, wrapped in a wrapper div.
638+
* @return string The the read more link wrapped in a `div`.
639639
*/
640640
function twentytwenty_read_more_tag( $html ) {
641641
return preg_replace( '/<a(.*)>(.*)<\/a>/iU', sprintf( '<div class="read-more-button-wrap"><a$1><span class="faux-button">$2</span> <span class="screen-reader-text">"%1$s"</span></a></div>', get_the_title( get_the_ID() ) ), $html );

src/wp-content/themes/twentytwenty/inc/template-tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function twentytwenty_site_description( $display = true ) {
148148
* @since Twenty Twenty 1.0
149149
*
150150
* @param object $comment Comment data.
151-
* @return bool True if the comment is by the post author, false otherwise.
151+
* @return bool Whether the comment is by the post author.
152152
*/
153153
function twentytwenty_is_comment_by_post_author( $comment = null ) {
154154

src/wp-content/themes/twentytwentyone/inc/template-functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @since Twenty Twenty-One 1.0
1414
*
1515
* @param array $classes Classes for the body element.
16-
* @return array Filtered body classes with theme-specific additions.
16+
* @return string[] Body classes with theme-specific additions.
1717
*/
1818
function twenty_twenty_one_body_classes( $classes ) {
1919

@@ -43,7 +43,7 @@ function twenty_twenty_one_body_classes( $classes ) {
4343
* @since Twenty Twenty-One 1.0
4444
*
4545
* @param array $classes An array of CSS classes.
46-
* @return array Filtered post classes with 'entry' class added.
46+
* @return string[] Post classes with 'entry' class added.
4747
*/
4848
function twenty_twenty_one_post_classes( $classes ) {
4949
$classes[] = 'entry';

0 commit comments

Comments
 (0)