Fix PHP, CSS AND JS coding standards
This commit is contained in:
parent
2351bef6ca
commit
f94fc1e59b
42 changed files with 357 additions and 213 deletions
12
header.php
12
header.php
|
@ -41,17 +41,19 @@
|
|||
$_s_description = get_bloginfo( 'description', 'display' );
|
||||
if ( $_s_description || is_customize_preview() ) :
|
||||
?>
|
||||
<p class="site-description"><?php echo $_s_description; /* WPCS: xss ok. */ ?></p>
|
||||
<p class="site-description"><?php echo $_s_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
|
||||
<?php endif; ?>
|
||||
</div><!-- .site-branding -->
|
||||
|
||||
<nav id="site-navigation" class="main-navigation">
|
||||
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', '_s' ); ?></button>
|
||||
<?php
|
||||
wp_nav_menu( array(
|
||||
'theme_location' => 'menu-1',
|
||||
'menu_id' => 'primary-menu',
|
||||
) );
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'menu-1',
|
||||
'menu_id' => 'primary-menu',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</nav><!-- #site-navigation -->
|
||||
</header><!-- #masthead -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue