Skip to content

Commit 423de1e

Browse files
author
Alex Perfilov
committed
Sonar code smell fixes
1 parent 20663cf commit 423de1e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

roots-nextdatagov/lib/titles.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ function roots_title()
1010
} else {
1111
return __('Latest Posts', 'roots');
1212
}
13-
} elseif (is_archive() OR is_single() OR is_page()) {
14-
if (is_single() OR is_page()) {
13+
} elseif (is_archive() || is_single() || is_page()) {
14+
if (is_single() || is_page()) {
1515
global $post;
1616
if ($post) {
1717
$term = get_the_category($post->ID);

roots-nextdatagov/templates/category-subnav.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"water",
6767
"climate"
6868
);
69-
if ($subnav OR (isset($subnav_extra) && $subnav_extra)):
69+
if ($subnav || (isset($subnav_extra) && $subnav_extra)):
7070
?>
7171

7272
<div class="subnav banner">

roots-nextdatagov/templates/header-top-navbar.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
<div class="page-header">
7676

7777

78-
<?php if (is_category() OR is_tax()): ?>
78+
<?php if (is_category() || is_tax()): ?>
7979
<div class="tagline">
8080
<?php echo category_description(); ?>
8181
</div>

0 commit comments

Comments
 (0)