CS: prefix all variables
While template files are intended to be included from within a function, this doesn't guarantee they always will be. Therefore all variables declared within template files also need to be prefixed with a theme specific prefix. As these are "local" variables, renaming them does not constitute a BC-break.
This commit is contained in:
parent
ec877e48c3
commit
98e3e75109
3 changed files with 9 additions and 9 deletions
|
@ -37,10 +37,10 @@
|
|||
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
||||
<?php
|
||||
endif;
|
||||
$description = get_bloginfo( 'description', 'display' );
|
||||
if ( $description || is_customize_preview() ) :
|
||||
$_s_description = get_bloginfo( 'description', 'display' );
|
||||
if ( $_s_description || is_customize_preview() ) :
|
||||
?>
|
||||
<p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p>
|
||||
<p class="site-description"><?php echo $_s_description; /* WPCS: xss ok. */ ?></p>
|
||||
<?php endif; ?>
|
||||
</div><!-- .site-branding -->
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue