Skip to content

Commit

Permalink
Merge pull request understrap#1166 from IanDelMar/no-else
Browse files Browse the repository at this point in the history
Remove unnecessary else clause
  • Loading branch information
UnderstrapFramework authored Oct 14, 2020
2 parents b45c6ce + 0d8f254 commit 91def17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
11 changes: 5 additions & 6 deletions inc/extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,12 @@ function understrap_default_body_attributes( $atts ) {
function understrap_escape_the_archive_description( $description ) {
if ( is_author() || is_post_type_archive() ) {
return wp_kses_post( $description );
} else {
/*
* All other descriptions are retrieved via term_description() which returns
* a sanitized description.
*/
return $description;
}
/*
* All other descriptions are retrieved via term_description() which returns
* a sanitized description.
*/
return $description;
}
} // End of if function_exists( 'understrap_escape_the_archive_description' ).

Expand Down
3 changes: 1 addition & 2 deletions inc/jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ function understrap_components_social_menu() {
if ( ! function_exists( 'jetpack_social_menu' ) ) {
// Return early if social menu is not available.
return;
} else {
jetpack_social_menu();
}
jetpack_social_menu();
}
}
5 changes: 2 additions & 3 deletions inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,9 @@ function understrap_categorized_blog() {
if ( $all_the_cool_cats > 1 ) {
// This blog has more than 1 category so understrap_categorized_blog should return true.
return true;
} else {
// This blog has only 1 category so understrap_categorized_blog should return false.
return false;
}
// This blog has only 1 category so understrap_categorized_blog should return false.
return false;
}
}

Expand Down

0 comments on commit 91def17

Please sign in to comment.