use home_url('/') instead of bloginfo('url').

This commit is contained in:
CBS Information System 2020-11-01 18:47:16 +09:00
parent 248cc6bdd9
commit 0c8b959a3e
4 changed files with 8 additions and 8 deletions

View File

@ -117,14 +117,14 @@ add_action('widgets_init', 'cbsonline_widgets_init');
// tweak bogo plugin // tweak bogo plugin
// - disable flags // - disable flags
add_filter('bogo_use_flags', 'bogo_use_flags_false'); add_filter('bogo_use_flags', 'cbsonline_bogo_use_flags_false');
function bogo_use_flags_false() function cbsonline_bogo_use_flags_false()
{ {
return false; return false;
} }
// - remove ' (United States)' strings from en_US language // - remove ' (United States)' strings from en_US language
add_filter('bogo_language_switcher', 'replace_bogo_text'); add_filter('bogo_language_switcher', 'cbsonline_replace_bogo_text');
function replace_bogo_text($output) function cbsonline_replace_bogo_text($output)
{ {
return str_replace(' (United States)', '', $output); return str_replace(' (United States)', '', $output);
} }

View File

@ -51,7 +51,7 @@ biz_vektor_get_theme_options(); ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<form role="search" method="get" id="searchform" class="searchform" action="<?php bloginfo('url'); ?>"> <form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url(home_url('/')); ?>">
<div> <div>
<input type="submit" id="searchsubmit" value="Search" /> <input type="submit" id="searchsubmit" value="Search" />
<label class="screen-reader-text" for="s">検索:</label> <label class="screen-reader-text" for="s">検索:</label>

View File

@ -48,10 +48,10 @@ if ($postTopUrl) {
<?php $locale = get_locale(); <?php $locale = get_locale();
if ('en_US' == $locale ) { ?> if ('en_US' == $locale ) { ?>
<!--英語表示の時--> <!--英語表示の時-->
<p class="entryListTopList"><a href="<?php bloginfo('url'); ?>/announcements/">→View ALL</a></p> <p class="entryListTopList"><a href="<?php echo esc_url(home_url('/')); ?>announcements/">→View ALL</a></p>
<?php } else { ?> <?php } else { ?>
<!--日本語表示の時 --> <!--日本語表示の時 -->
<p class="entryListTopList"><a href="<?php bloginfo('url'); ?>/announcements/">→お知らせ一覧</a></p> <p class="entryListTopList"><a href="<?php echo esc_url(home_url('/')); ?>announcements/">→お知らせ一覧</a></p>
<?php } ?> <?php } ?>
</div><!-- [ /#topBlog ] --> </div><!-- [ /#topBlog ] -->

View File

@ -6,7 +6,7 @@
<div id="content" class="content wide"> <div id="content" class="content wide">
<div class="error404"> <div class="error404">
<form role="search" method="get" id="searchform" class="searchform" action="<?php bloginfo('url'); ?>"> <form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url(home_url('/')); ?>">
<div> <div>
<input type="submit" id="searchsubmit" value="Search" /> <input type="submit" id="searchsubmit" value="Search" />
<label class="screen-reader-text" for="s">検索:</label> <label class="screen-reader-text" for="s">検索:</label>