Merge pull request #1064 from IanDelMar/header-strict-comparision
Use strict comparison
This commit is contained in:
commit
063e91e2b5
|
@ -32,7 +32,7 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
|
||||
<nav id="main-nav" class="navbar navbar-expand-md navbar-dark bg-primary">
|
||||
|
||||
<?php if ( 'container' == $container ) : ?>
|
||||
<?php if ( 'container' === $container ) : ?>
|
||||
<div class="container">
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -70,7 +70,7 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
'walker' => new Understrap_WP_Bootstrap_Navwalker(),
|
||||
)
|
||||
); ?>
|
||||
<?php if ( 'container' == $container ) : ?>
|
||||
<?php if ( 'container' === $container ) : ?>
|
||||
</div><!-- .container -->
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
Reference in New Issue