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
4
404.php
4
404.php
|
@ -44,8 +44,8 @@ get_header();
|
|||
|
||||
<?php
|
||||
/* translators: %1$s: smiley */
|
||||
$archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', '_s' ), convert_smilies( ':)' ) ) . '</p>';
|
||||
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
|
||||
$_s_archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', '_s' ), convert_smilies( ':)' ) ) . '</p>';
|
||||
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$_s_archive_content" );
|
||||
|
||||
the_widget( 'WP_Widget_Tag_Cloud' );
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue